org.dllearner.core
Class AbstractAxiomLearningAlgorithm
java.lang.Object
org.dllearner.core.AbstractComponent
org.dllearner.core.AbstractAxiomLearningAlgorithm
- All Implemented Interfaces:
- AxiomLearningAlgorithm, Component, LearningAlgorithm
- Direct Known Subclasses:
- DataPropertyDomainAxiomLearner, DataPropertyRangeAxiomLearner, DisjointClassesLearner, DisjointDataPropertyAxiomLearner, DisjointObjectPropertyAxiomLearner, EquivalentDataPropertyAxiomLearner, EquivalentObjectPropertyAxiomLearner, FunctionalDataPropertyAxiomLearner, FunctionalObjectPropertyAxiomLearner, InverseFunctionalObjectPropertyAxiomLearner, IrreflexiveObjectPropertyAxiomLearner, ObjectPropertyDomainAxiomLearner, ObjectPropertyRangeAxiomLearner, ReflexiveObjectPropertyAxiomLearner, SimpleSubclassLearner, SubDataPropertyOfAxiomLearner, SubObjectPropertyOfAxiomLearner, SymmetricObjectPropertyAxiomLearner, TransitiveObjectPropertyAxiomLearner
public class AbstractAxiomLearningAlgorithm
- extends AbstractComponent
- implements AxiomLearningAlgorithm
- Author:
- Lorenz Bühmann, Jens Lehmann
AbstractAxiomLearningAlgorithm
public AbstractAxiomLearningAlgorithm()
start
public void start()
- Description copied from interface:
LearningAlgorithm
- Starts the algorithm. It runs until paused, stopped, or
a termination criterion has been reached.
- Specified by:
start in interface LearningAlgorithm
init
public void init()
throws ComponentInitException
- Description copied from interface:
Component
- Method to be called after the component has been configured.
Implementation of components can overwrite this method to
perform setup and initialisation tasks for this component.
- Specified by:
init in interface Component
- Throws:
ComponentInitException - This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
rethrow occuring exception as ComponentInitException and
giving an error message as well as the actualy exception by
using the constructor ComponentInitException.ComponentInitException(String, Throwable).
getCurrentlyBestAxioms
public List<Axiom> getCurrentlyBestAxioms()
- Specified by:
getCurrentlyBestAxioms in interface AxiomLearningAlgorithm
- Returns:
- The best axioms found by the learning algorithm so far.
getCurrentlyBestAxioms
public List<Axiom> getCurrentlyBestAxioms(int nrOfAxioms)
- Specified by:
getCurrentlyBestAxioms in interface AxiomLearningAlgorithm
- Parameters:
nrOfAxioms - Limit for the number or returned axioms.
- Returns:
- The best axioms found by the learning algorithm so far.
getCurrentlyBestAxioms
public List<Axiom> getCurrentlyBestAxioms(int nrOfAxioms,
double accuracyThreshold)
getCurrentlyBestEvaluatedAxioms
public List<EvaluatedAxiom> getCurrentlyBestEvaluatedAxioms()
- Specified by:
getCurrentlyBestEvaluatedAxioms in interface AxiomLearningAlgorithm
- Returns:
- The best evaluated axioms found by the learning algorithm so far.
getCurrentlyBestEvaluatedAxioms
public List<EvaluatedAxiom> getCurrentlyBestEvaluatedAxioms(int nrOfAxioms)
- Specified by:
getCurrentlyBestEvaluatedAxioms in interface AxiomLearningAlgorithm
- Parameters:
nrOfAxioms - Limit for the number or returned evaluated axioms.
- Returns:
- The best evaluated axioms found by the learning algorithm so far.
getCurrentlyBestEvaluatedAxioms
public List<EvaluatedAxiom> getCurrentlyBestEvaluatedAxioms(int nrOfAxioms,
double accuracyThreshold)
getConfigurator
public Configurator getConfigurator()
- Description copied from class:
AbstractComponent
- For each component, a configurator class is generated in package
org.dllearner.core.configurators using the script
{ org.dllearner.scripts.ConfigJavaGenerator}. The configurator
provides set and get methods for the configuration options of
a component.
- Specified by:
getConfigurator in class AbstractComponent
- Returns:
- An object allowing to configure this component.
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann