多级别多模态解释:智能系统决策解释新方法
1. 基本ILP算法
在智能系统的构建中,ILP(Inductive Logic Programming,归纳逻辑编程)算法是一个关键的基础。以下是基本ILP算法的详细内容:
Algorithm 1: Basic ILP algorithm
Input:
(T, E+, E−): an ILP problem
Output:
M: a classification model
Begin:
M ←∅, initialise the model
C ←∅, temporary clause
Pos ←E+, the set of positive training examples
While Pos ≠∅do
C ←GenerateNewClause(Pos, E−, T)
such that ∃p ∈E+ ∶T ∪C ⊧p
and ∀n ∈E−∶T ∪C /⊧n
and C is optimal w.r.t. quality criterion A(C)
Pos ←Pos ∖{p}
M ←M ∪{C}
End
Return M
End
这个算法的输入是一个ILP问题 (T, E+, E−) ,输出是一个分类模型 M 。具体步骤如下:
1. 初始化模型 M 为空集。
2. 初始化临时子句 C 为空集。
3. 将正训练示例集 E+ 赋
超级会员免费看
订阅专栏 解锁全文
4979

被折叠的 条评论
为什么被折叠?



