|
||||||||||
| 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.RandomGuesser
public class RandomGuesser
| Field Summary |
|---|
| Fields inherited from class org.dllearner.core.LearningAlgorithm |
|---|
MAX_NR_OF_RESULTS |
| Constructor Summary | |
|---|---|
RandomGuesser(LearningProblem learningProblem,
ReasonerComponent rs)
|
|
| Method Summary | ||
|---|---|---|
|
applyConfigEntry(ConfigEntry<T> entry)
Applies a configuration option to this component. |
|
static Collection<ConfigOption<?>> |
createConfigOptions()
|
|
RandomGuesserConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script ConfigJavaGenerator. |
|
Description |
getCurrentlyBestDescription()
|
|
EvaluatedDescriptionPosNeg |
getCurrentlyBestEvaluatedDescription()
Returns the best descriptions obtained so far. |
|
static String |
getName()
|
|
ScorePosNeg |
getSolutionScore()
|
|
void |
init()
Method to be called after the component has been configured. |
|
boolean |
isRunning()
Returns whether the learning algorithm is running. |
|
void |
start()
Starts the algorithm. |
|
void |
stop()
Stops the algorithm gracefully. |
|
static Collection<Class<? extends LearningProblem>> |
supportedLearningProblems()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomGuesser(LearningProblem learningProblem,
ReasonerComponent rs)
| Method Detail |
|---|
public RandomGuesserConfigurator getConfigurator()
ComponentConfigJavaGenerator. The configurator
provides set and get methods for the configuration options of
a component.
getConfigurator in class Componentpublic static String getName()
public 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 void start()
LearningAlgorithm
start in class LearningAlgorithmpublic ScorePosNeg getSolutionScore()
public Description getCurrentlyBestDescription()
getCurrentlyBestDescription in class LearningAlgorithmLearningAlgorithm.getCurrentlyBestEvaluatedDescription()public EvaluatedDescriptionPosNeg getCurrentlyBestEvaluatedDescription()
LearningAlgorithm
getCurrentlyBestEvaluatedDescription in class LearningAlgorithmpublic void stop()
LearningAlgorithm
stop in class LearningAlgorithmpublic boolean isRunning()
LearningAlgorithm
isRunning in class LearningAlgorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||