|
|||||||||
| 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.AbstractLearningProblem
public abstract class AbstractLearningProblem
Base class for all learning problems. See also the wiki page for DL-Learner-Architecture. Currently, we assume that all learning problems have the goal of learning class descriptions. However, this may be extended to other scenarios if desired.
| Constructor Summary | |
|---|---|
AbstractLearningProblem(AbstractReasonerComponent reasoner)
Constructs a learning problem using a reasoning service for querying the background knowledge. |
|
| Method Summary | |
|---|---|
void |
changeReasonerComponent(AbstractReasonerComponent reasoner)
Method to exchange the reasoner underlying the learning problem. |
abstract Score |
computeScore(Description description)
Computes the Score of a given class description
with respect to this learning problem. |
abstract EvaluatedDescription |
evaluate(Description description)
Evaluates the description by computing the score and returning an evaluated description of the correct type (ClassLearningProblem returns EvaluatedDescriptionClass instead of generic EvaluatedDescription). |
abstract double |
getAccuracy(Description description)
This method returns a value, which indicates how accurate a class description solves a learning problem. |
abstract double |
getAccuracyOrTooWeak(Description description,
double noise)
This method computes the accuracy as getAccuracy(Description),
but returns -1 instead of the accuracy if 1.) the accuracy of the
description is below the given threshold and 2.) the accuracy of all
more special w.r.t. subsumption descriptions is below the given threshold. |
| Methods inherited from class org.dllearner.core.AbstractComponent |
|---|
createConfigOptions, getConfigurator, getName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.dllearner.core.Component |
|---|
init |
| Constructor Detail |
|---|
public AbstractLearningProblem(AbstractReasonerComponent reasoner)
reasoner - The reasoning service used as
background knowledge.| Method Detail |
|---|
public void changeReasonerComponent(AbstractReasonerComponent reasoner)
reasoner - New reasoning service.public abstract Score computeScore(Description description)
Score of a given class description
with respect to this learning problem.
This can (but does not need to) be used by learning algorithms
to measure how good the description fits the learning problem.
Score objects are used to store e.g. covered examples, accuracy etc.,
so often it is more efficient to only create score objects for
promising class descriptions.
description - A class description (as solution candidate for this learning problem).
Score object.public abstract EvaluatedDescription evaluate(Description description)
description - Description to evaluate.
public abstract double getAccuracy(Description description)
public abstract double getAccuracyOrTooWeak(Description description,
double noise)
getAccuracy(Description),
but returns -1 instead of the accuracy if 1.) the accuracy of the
description is below the given threshold and 2.) the accuracy of all
more special w.r.t. subsumption descriptions is below the given threshold.
This is used for efficiency reasons, i.e. -1 can be returned instantly if
it is clear that the description and all its refinements are not
sufficiently accurate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||