object
metagol
Inductive logic programming (ILP) system based on meta-interpretive learning.
logtalk_load(metagol(loader))static, context_switching_callsPublic predicates
learn/3
Learns from a set of positive examples and a set of negative examples and returns the learned program.
staticlearn(PositiveExamples,NegativeExamples,Program)learn(@list(example),@list(example),-list(term)) - zero_or_morelearn/2
Learns from a set of positive examples and a set of negative examples and pretty prints the learned program.
staticlearn(PositiveExamples,NegativeExamples)learn(@list(example),@list(example)) - zero_or_morelearn_seq/2
Learns from a sequence of examples represented as a list of PositiveExamples/NegativeExamples elements and returns the learned program.
staticlearn_seq(Examples,Program)learn_seq(@list(example),-list(clause)) - zero_or_onelearn_with_timeout/4
Learns from a set of positive examples and a set of negative examples and returns the learned program constrained by the given timeout or its default value.
staticlearn_with_timeout(PositiveExamples,NegativeExamples,Program,Timeout)learn_with_timeout(@list(example),@list(example),-list(term),+number) - zero_or_one_or_errorlearn_with_timeout(@list(example),@list(example),-list(term),-number) - zero_or_one_or_errortimeout(learn(PositiveExamples,NegativeExamples,Program))program_to_clauses/2
Converts a learned program into a list of clauses.
staticprogram_to_clauses(Program,Clauses)program_to_clauses(@list(term),-list(clause)) - onepprint/1
Pretty prints a learned program.
staticpprint(Program)pprint(@list(term)) - onemetarule/6
Compiled metarule, generated from a user-defined metarule/3 or metarule/4 clause, relating a name, its substitutions, a head atom, a body, a recursion flag, and the current call path.
staticmetarule(Name,Subs,Head,Body,Recursive,Path)metarule(?atom,?list,?callable,?list,?atom,?list) - zero_or_morehead_pred/1
Declares a predicate indicator that can be used in the head of a learned clause.
statichead_pred(PredicateIndicator)head_pred(?predicate_indicator) - zero_or_moreibk/3
Interpreted background knowledge clause, generated from a user-defined ibk/2 fact or rule, relating a head atom (as a list) to a body (as a list of atoms) and the current call path.
staticibk(Head,Body,Path)ibk(?list,?list,?list) - zero_or_morefunc_test/3
Relates an atom to a test atom and a condition used to check that the learned program is functional.
staticfunc_test(Atom,TestAtom,Condition)func_test(@callable,-callable,-callable) - zero_or_morebody_pred/1
Declares a predicate indicator that can be used in the body of a learned clause.
dynamicbody_pred(PredicateIndicator)body_pred(?predicate_indicator) - zero_or_morefunctional/0
True when the learned program is required to be functional (deterministic).
dynamicfunctional - zero_or_onemin_clauses/1
Minimum number of clauses to try when searching for a learned program.
dynamicmin_clauses(MinClauses)min_clauses(?integer) - zero_or_onemax_clauses/1
Maximum number of clauses to try when searching for a learned program.
dynamicmax_clauses(MaxClauses)max_clauses(?integer) - zero_or_onemax_inv_preds/1
Maximum number of invented predicate symbols allowed per learning task.
dynamicmax_inv_preds(MaxInventedPredicates)max_inv_preds(?integer) - zero_or_onemetarule_next_id/1
Next identifier to use when generating a name for an anonymous metarule.
dynamicmetarule_next_id(Id)metarule_next_id(?integer) - zero_or_onetimeout/1
Default timeout, in seconds, used when learning a program.
dynamictimeout(Timeout)timeout(?number) - zero_or_oneProtected predicates
pprint_clause/1
Pretty prints a single learned clause. Can be redefined to customize the printing of learned clauses.
staticpprint_clause(Clause)pprint_clause(@clause) - onecompiled_pred_call/2
Asserted clause used to call a compiled (pre-existing) predicate given its name and list of arguments.
dynamiccompiled_pred_call(Predicate,Arguments)compiled_pred_call(?atom,?list) - zero_or_morebody_pred_call/2
Asserted clause used to call a background knowledge predicate given its name and list of arguments.
dynamicbody_pred_call(Predicate,Arguments)body_pred_call(?atom,?list) - zero_or_moretype/3
Asserted fact classifying a predicate, given by its name and arity, by its role (head_pred, body_pred, ibk_head_pred, or compiled_pred).
dynamictype(Name,Arity,Type)type(?atom,?integer,?atom) - zero_or_morePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)