Did you know ... | Search Documentation: |
![]() | Pack logtalk -- logtalk-3.81.0/docs/_sources/metagol_0.rst.txt |
.. index:: metagol .. _metagol/0:
.. rst-class:: right
object
metagol
Inductive logic programming (ILP) system based on meta-interpretive learning.
| Availability:
| logtalk_load(metagol(loader))
| Author: Metagol authors; adapted to Logtalk by Paulo Moura. | Version: 0:24:4 | Date: 2024-03-15
| Copyright: Copyright 2016 Metagol authors; Copyright 2018-2024 Paulo Moura | License: BSD-3-Clause
| Compilation flags:
| static, context_switching_calls
| Implements:
| public
:ref:`expanding <expanding/0>`
| Provides:
| :ref:`logtalk::message_tokens//2 <logtalk/0::message_tokens//2>`
| :ref:`logtalk::message_prefix_stream/4 <logtalk/0::message_prefix_stream/4>`
| Uses:
| :ref:`coroutining <coroutining/0>`
| :ref:`integer <integer/0>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
| :ref:`meta <meta/0>`
| :ref:`timeout <timeout/0>`
| Remarks: | (none)
| Inherited public predicates: | Â :ref:`expanding/0::goal_expansion/2` Â :ref:`expanding/0::term_expansion/2` Â
.. contents:: :local: :backlinks: top
.. index:: learn/3 .. _metagol/0::learn/3:
learn/3 ^^^^^^^^^^^
Learns from a set of positive examples and a set of negative examples and returns the learned program.
| Compilation flags:
| static
| Template:
| learn(PositiveExamples,NegativeExamples,Program)
| Mode and number of proofs:
| learn(@list(example),@list(example),-list(term))
- zero_or_more
.. index:: learn/2 .. _metagol/0::learn/2:
learn/2 ^^^^^^^^^^^
Learns from a set of positive examples and a set of negative examples and pretty prints the learned program.
| Compilation flags:
| static
| Template:
| learn(PositiveExamples,NegativeExamples)
| Mode and number of proofs:
| learn(@list(example),@list(example))
- zero_or_more
.. index:: learn_seq/2 .. _metagol/0::learn_seq/2:
learn_seq/2 ^^^^^^^^^^^^^^^
Learns from a sequence of examples represented as a list of PositiveExamples/NegativeExamples elements and returns the learned program.
| Compilation flags:
| static
| Template:
| learn_seq(Examples,Program)
| Mode and number of proofs:
| learn_seq(@list(example),-list(clause))
- zero_or_one
.. index:: learn_with_timeout/4 .. _metagol/0::learn_with_timeout/4:
learn_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.
| Compilation flags:
| static
| Template:
| learn_with_timeout(PositiveExamples,NegativeExamples,Program,Timeout)
| Mode and number of proofs:
| learn_with_timeout(@list(example),@list(example),-list(term),+number)
- zero_or_one_or_error
| learn_with_timeout(@list(example),@list(example),-list(term),-number)
- zero_or_one_or_error
| Exceptions:
| Learning does not complete in the allowed time:
| timeout(learn(PositiveExamples,NegativeExamples,Program))
.. index:: program_to_clauses/2 .. _metagol/0::program_to_clauses/2:
program_to_clauses/2 ^^^^^^^^^^^^^^^^^^^^^^^^
Converts a learned program into a list of clauses.
| Compilation flags:
| static
| Template:
| program_to_clauses(Program,Clauses)
| Mode and number of proofs:
| program_to_clauses(@list(term),-list(clause))
- one
.. index:: pprint/1 .. _metagol/0::pprint/1:
pprint/1 ^^^^^^^^^^^^
Pretty prints a learned program.
| Compilation flags:
| static
| Template:
| pprint(Program)
| Mode and number of proofs:
| pprint(@list(term))
- one
.. index:: metarule/6 .. _metagol/0::metarule/6:
metarule/6 ^^^^^^^^^^^^^^
| Compilation flags:
| static
.. index:: head_pred/1 .. _metagol/0::head_pred/1:
head_pred/1 ^^^^^^^^^^^^^^^
| Compilation flags:
| static
.. index:: body_pred/1 .. _metagol/0::body_pred/1:
body_pred/1 ^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: ibk/3 .. _metagol/0::ibk/3:
ibk/3 ^^^^^^^^^
| Compilation flags:
| static
.. index:: func_test/3 .. _metagol/0::func_test/3:
func_test/3 ^^^^^^^^^^^^^^^
| Compilation flags:
| static
.. index:: functional/0 .. _metagol/0::functional/0:
functional/0 ^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: min_clauses/1 .. _metagol/0::min_clauses/1:
min_clauses/1 ^^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: max_clauses/1 .. _metagol/0::max_clauses/1:
max_clauses/1 ^^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: max_inv_preds/1 .. _metagol/0::max_inv_preds/1:
max_inv_preds/1 ^^^^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: metarule_next_id/1 .. _metagol/0::metarule_next_id/1:
metarule_next_id/1 ^^^^^^^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: timeout/1 .. _metagol/0::timeout/1:
timeout/1 ^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: pprint_clause/1 .. _metagol/0::pprint_clause/1:
pprint_clause/1 ^^^^^^^^^^^^^^^^^^^
| Compilation flags:
| static
.. index:: pprint_clauses/1 .. _metagol/0::pprint_clauses/1:
pprint_clauses/1 ^^^^^^^^^^^^^^^^^^^^
| Compilation flags:
| static
.. index:: compiled_pred_call/2 .. _metagol/0::compiled_pred_call/2:
compiled_pred_call/2 ^^^^^^^^^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: body_pred_call/2 .. _metagol/0::body_pred_call/2:
body_pred_call/2 ^^^^^^^^^^^^^^^^^^^^
| Compilation flags:
| dynamic
.. index:: type/3 .. _metagol/0::type/3:
type/3 ^^^^^^^^^^
| Compilation flags:
| dynamic
(no local declarations; see entity ancestors if any)
(none)