|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.core.Component
org.dllearner.core.LearningAlgorithm
org.dllearner.algorithms.refinement.ROLearner
public class ROLearner
| Nested Class Summary | |
|---|---|
static class |
ROLearner.Heuristic
|
| Field Summary |
|---|
| Fields inherited from class org.dllearner.core.LearningAlgorithm |
|---|
MAX_NR_OF_RESULTS |
| Constructor Summary | |
|---|---|
ROLearner(PosNegLP learningProblem,
ReasonerComponent 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 ConfigJavaGenerator. |
|
Description |
getCurrentlyBestDescription()
|
|
List<Description> |
getCurrentlyBestDescriptions(int nrOfSolutions)
|
|
EvaluatedDescriptionPosNeg |
getCurrentlyBestEvaluatedDescription()
Returns the best descriptions obtained so far. |
|
SortedSet<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 LearningProblem>> |
supportedLearningProblems()
|
|
| Methods inherited from class org.dllearner.core.LearningAlgorithm |
|---|
changeLearningProblem, changeReasonerComponent, getCurrentlyBestDescriptions, getCurrentlyBestDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, pause, resume |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ROLearner(PosNegLP learningProblem,
ReasonerComponent reasoningService)
| Method Detail |
|---|
public ROLearnerConfigurator getConfigurator()
ComponentConfigJavaGenerator. The configurator
provides set and get methods for the configuration options of
a component.
getConfigurator in class Componentpublic static Collection<Class<? extends LearningProblem>> supportedLearningProblems()
public static Collection<ConfigOption<?>> createConfigOptions()
public <T> void applyConfigEntry(ConfigEntry<T> entry)
throws InvalidConfigOptionValueException
ComponentComponentManager.
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.Component.getConfigurator()public void init()
Component
init in class Componentpublic static String getName()
public void start()
LearningAlgorithm
start in class LearningAlgorithmpublic Description getCurrentlyBestDescription()
getCurrentlyBestDescription in class LearningAlgorithmLearningAlgorithm.getCurrentlyBestEvaluatedDescription()public EvaluatedDescriptionPosNeg getCurrentlyBestEvaluatedDescription()
LearningAlgorithm
getCurrentlyBestEvaluatedDescription in class LearningAlgorithmpublic SortedSet<EvaluatedDescriptionPosNeg> getCurrentlyBestEvaluatedDescriptions()
LearningAlgorithm
getCurrentlyBestEvaluatedDescriptions in class LearningAlgorithmpublic void printBestSolutions(int nrOfSolutions)
public List<Description> getCurrentlyBestDescriptions(int nrOfSolutions)
getCurrentlyBestDescriptions in class LearningAlgorithmnrOfSolutions - Limit for the number or returned descriptions.
LearningAlgorithm.getCurrentlyBestEvaluatedDescriptions(int)public ScorePosNeg getSolutionScore()
public ScorePosNeg getSolutionScore(Description d)
public void stop()
LearningAlgorithm
stop in class LearningAlgorithmpublic Node getStartNode()
public boolean isRunning()
LearningAlgorithm
isRunning in class LearningAlgorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||