This module performs learning over Logic Programs with Annotated Disjunctions and CP-Logic programs. It performs both parameter and structure learning.
See https://friguzzi.github.io/cplint/ for details.
Reexports bddem
assertz(M:Term,Ref)
and
returns the list of references in Refsrule(R,HeadList,BodyList,Lit,Tun)
.
ClausesOut/Clauses is a difference list of clauses to be asserted.rule(R,HeadList,BodyList,Lit,Tun)
.
Rules is a list of terms of the form
rule(N,HeadList,BodyList,Lit,Tun)
where N is
an increasing index starting from StartingIndex.
ClausesOut/Clauses is a difference list of clauses to be asserted.def_rule(H,BodyList,_Lit)
.
Clauses is a list of clauses to be asserted.ng(RN,Vals)
, indicating a rule for which
different instantiations get different parameters.write(Message)
if the verbosity is at least 2.
Module is used to get the verbosity settingwrite(Message)
if the verbosity is at least 3.
Module is used to get the verbosity setting.format(Format,Arguments)
if the verbosity is at least 2.
Module is used to get the verbosity setting.format(Format,Arguments)
if the verbosity is at least 3.
Module is used to get the verbosity setting.The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
Performs EM learning. Takes as input the Context, information on the rules, a list of BDDs each representing one example, the minimum absolute difference EA and relative difference ER between the log likelihood of examples in two different iterations and the maximum number of iterations Iterations. RuleInfo is a list of elements, one for each rule, with are either
length(Theta)
-1)