|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.AbstractComponent
org.dllearner.core.AbstractCELA
org.dllearner.algorithms.refinement.ROLearner
public class ROLearner
| Nested Class Summary | |
|---|---|
static class |
ROLearner.Heuristic
|
| Field Summary |
|---|
| Fields inherited from class org.dllearner.core.AbstractCELA |
|---|
MAX_NR_OF_RESULTS |
| Constructor Summary | |
|---|---|
ROLearner(PosNegLP learningProblem,
AbstractReasonerComponent reasoningService)
|
|
| Method Summary | ||
|---|---|---|
|
applyConfigEntry(ConfigEntry<T> entry)
Applies a configuration option to this component. |
|
static Collection<ConfigOption<?>> |
createConfigOptions()
|
|
ROLearnerConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}. |
|
Description |
getCurrentlyBestDescription()
|
|
List<Description> |
getCurrentlyBestDescriptions(int nrOfSolutions)
|
|
EvaluatedDescriptionPosNeg |
getCurrentlyBestEvaluatedDescription()
Returns the best descriptions obtained so far. |
|
TreeSet<EvaluatedDescriptionPosNeg> |
getCurrentlyBestEvaluatedDescriptions()
Returns a sorted set of the best descriptions found so far. |
|
static String |
getName()
|
|
ScorePosNeg |
getSolutionScore()
|
|
ScorePosNeg |
getSolutionScore(Description d)
|
|
Node |
getStartNode()
|
|
void |
init()
Method to be called after the component has been configured. |
|
boolean |
isRunning()
Returns whether the learning algorithm is running. |
|
void |
printBestSolutions(int nrOfSolutions)
|
|
void |
start()
Starts the algorithm. |
|
void |
stop()
Stops the algorithm gracefully. |
|
static Collection<Class<? extends AbstractLearningProblem>> |
supportedLearningProblems()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ROLearner(PosNegLP learningProblem,
AbstractReasonerComponent reasoningService)
| Method Detail |
|---|
public ROLearnerConfigurator getConfigurator()
AbstractComponent
getConfigurator in class AbstractComponentpublic static Collection<Class<? extends AbstractLearningProblem>> supportedLearningProblems()
public static Collection<ConfigOption<?>> createConfigOptions()
public <T> void applyConfigEntry(ConfigEntry<T> entry)
throws InvalidConfigOptionValueException
AbstractComponentComponentManager.
T - Type of the config entry (Integer, String etc.).entry - A configuration entry.
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.AbstractComponent.getConfigurator()public void init()
Component
public static String getName()
public void start()
LearningAlgorithm
public Description getCurrentlyBestDescription()
getCurrentlyBestDescription in class AbstractCELAAbstractCELA.getCurrentlyBestEvaluatedDescription()public EvaluatedDescriptionPosNeg getCurrentlyBestEvaluatedDescription()
AbstractCELA
getCurrentlyBestEvaluatedDescription in class AbstractCELApublic TreeSet<EvaluatedDescriptionPosNeg> getCurrentlyBestEvaluatedDescriptions()
AbstractCELA
getCurrentlyBestEvaluatedDescriptions in class AbstractCELApublic void printBestSolutions(int nrOfSolutions)
public List<Description> getCurrentlyBestDescriptions(int nrOfSolutions)
getCurrentlyBestDescriptions in interface ClassExpressionLearningAlgorithmgetCurrentlyBestDescriptions in class AbstractCELAnrOfSolutions - Limit for the number or returned descriptions.
AbstractCELA.getCurrentlyBestEvaluatedDescriptions(int)public ScorePosNeg getSolutionScore()
public ScorePosNeg getSolutionScore(Description d)
public void stop()
StoppableLearningAlgorithm
public Node getStartNode()
public boolean isRunning()
StoppableLearningAlgorithm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||