org.dllearner.learningproblems
Class PosNegLP
java.lang.Object
org.dllearner.core.AbstractComponent
org.dllearner.core.AbstractLearningProblem
org.dllearner.learningproblems.PosNegLP
- All Implemented Interfaces:
- Component, LearningProblem
- Direct Known Subclasses:
- PosNegLPStandard, PosNegLPStrict
public abstract class PosNegLP
- extends AbstractLearningProblem
- Author:
- Jens Lehmann
|
Nested Class Summary |
static class |
PosNegLP.UseMultiInstanceChecks
If instance checks are used for testing concepts (e.g. no retrieval), then
there are several options to do this. |
PosNegLP
public PosNegLP(AbstractReasonerComponent reasoningService)
createConfigOptions
public static Collection<ConfigOption<?>> createConfigOptions()
applyConfigEntry
public <T> void applyConfigEntry(ConfigEntry<T> entry)
throws InvalidConfigOptionValueException
- Description copied from class:
AbstractComponent
- Applies a configuration option to this component. Implementations
of components should use option and value of the config entry to
perform an action (usually setting an internal variable to
an appropriate value).
Since the availability of configurators, it is optional for
components to implement this method. Instead of using this method
to take an action based on a configuration value, components can
also use the getters defined in the components configurator.
Important note: Never call this method directly. All calls are
done via the
ComponentManager.
- Type Parameters:
T - Type of the config entry (Integer, String etc.).- Parameters:
entry - A configuration entry.
- Throws:
InvalidConfigOptionValueException - This exception is thrown if the
value of the config entry is not valid. For instance, a config option
may only accept values, which are within intervals 0.1 to 0.3 or 0.5 to 0.8.
If the value is outside of those intervals, an exception is thrown. Note
that many of the common cases are already caught in the constructor of
ConfigEntry (for instance for a DoubleConfigOption you can specify
an interval for the value). This means that, as a component developer, you
often do not need to implement further validity checks.- See Also:
AbstractComponent.getConfigurator()
init
public void init()
- 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.
getNegativeExamples
public SortedSet<Individual> getNegativeExamples()
getPositiveExamples
public SortedSet<Individual> getPositiveExamples()
setNegativeExamples
public void setNegativeExamples(SortedSet<Individual> set)
setPositiveExamples
public void setPositiveExamples(SortedSet<Individual> set)
coveredNegativeExamplesOrTooWeak
public abstract int coveredNegativeExamplesOrTooWeak(Description concept)
getPercentPerLengthUnit
public double getPercentPerLengthUnit()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann