Supervision Completion

LoMRF employs online supervision completion in order to complete potentially missing labels in a sequence of training files (micro-batches). Then these completed training files can be used as an input into any learning algorithm provided by the LoMRF CLIs. The main benefit of the on-line approach is that it can scale to problems with large amount of data.

Note: Supervision completion is a new feature and its currently experimental.

Types of supervision completion in LoMRF

In order to perform supervision completion in LoMRF the following definitions are required:

Supervision completion using the lomrf supervision command-line tool

To demonstrate the usage of LoMRF from command-line interface for supervision completion, assume that we have one knowledge base file, named as schema.mln containing predicate and function schema, and a sequence of training files, named as training1.db, training2.db etc, containing evidence and the partial supervision.

In our example, lets assume a knowledge-base having the following predicates:

Predicate Name Number of arguments Predicate identity Description
NonEvidence_A 2 NonEvidence_A/2 first non-evidence predicate
NonEvidence_B 2 NonEvidence_B/2 second non-evidence predicate
Ev_A 1 EV_A/1 first evidence predicate
Ev_B 1 EV_B/1 second evidence predicate

As it is presented in the above table, there are two non-evidence predicates, NonEvidence_A and NonEvidence_B, where each one takes two terms as arguments. Therefore their atomic signatures are NonEvidence_A/2 and NonEvidence_B/2. Similarly, there are two evidence predicates Ev_A and Ev_B that they take one term as argument. Therefore, the atomic signatures of Ev_A and Ev_B are Ev_A/1 and Ev_B/1, respectively.

supervision completion

lomrf supervision -i schema.mln -t /path/to/training/batches/ -ne NonEvidence_A/2,NonEvidence_B/2 -m schema.modes

The resulting completed micro-batches are stored in a folder having the name of the strategy used (by default will be kNN.2.something)

Command-line Interface Options

By executing the lomrf supervision -h (or lomrf supervision --help) command from the command-line interface, we get a print of multiple parameters. Below we explain all LoMRF supervision completion command-line interface parameters:

Basic supervision completion options