org.dllearner.learningproblems
Class PosNegLP

java.lang.Object
  extended by org.dllearner.core.AbstractComponent
      extended by org.dllearner.core.AbstractLearningProblem
          extended by 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.
 
Constructor Summary
PosNegLP(AbstractReasonerComponent reasoningService)
           
 
Method Summary
<T> void
applyConfigEntry(ConfigEntry<T> entry)
          Applies a configuration option to this component.
abstract  int coveredNegativeExamplesOrTooWeak(Description concept)
           
static Collection<ConfigOption<?>> createConfigOptions()
           
 SortedSet<Individual> getNegativeExamples()
           
 double getPercentPerLengthUnit()
           
 SortedSet<Individual> getPositiveExamples()
           
 void init()
          Method to be called after the component has been configured.
 void setNegativeExamples(SortedSet<Individual> set)
           
 void setPositiveExamples(SortedSet<Individual> set)
           
 
Methods inherited from class org.dllearner.core.AbstractLearningProblem
changeReasonerComponent, computeScore, evaluate, getAccuracy, getAccuracyOrTooWeak
 
Methods inherited from class org.dllearner.core.AbstractComponent
getConfigurator, getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosNegLP

public PosNegLP(AbstractReasonerComponent reasoningService)
Method Detail

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()


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann