|
||||||||||
| 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.LearningProblem
org.dllearner.learningproblems.ClassLearningProblem
public class ClassLearningProblem
The problem of learning the description of an existing class in an OWL ontology.
| Constructor Summary | |
|---|---|
ClassLearningProblem(ReasonerComponent reasoner)
|
|
| Method Summary | |
|---|---|
ClassScore |
computeScore(Description description)
Computes the fraction of the instances of the class to learn, which is covered by the given description. |
static Collection<ConfigOption<?>> |
createConfigOptions()
|
EvaluatedDescriptionClass |
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). |
double |
getAccuracy(Description description)
This method returns a value, which indicates how accurate a class description solves a learning problem. |
double |
getAccuracyOrTooWeak(Description description,
double noise)
This method computes the accuracy as LearningProblem.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. |
double |
getAccuracyOrTooWeakStandard(Description description,
double minAccuracy)
Deprecated. |
NamedClass |
getClassToDescribe()
|
ClassLearningProblemConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script ConfigJavaGenerator. |
static String |
getName()
|
void |
init()
Method to be called after the component has been configured. |
boolean |
isConsistent(Description description)
|
boolean |
isEquivalenceProblem()
|
| Methods inherited from class org.dllearner.core.LearningProblem |
|---|
changeReasonerComponent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLearningProblem(ReasonerComponent reasoner)
| Method Detail |
|---|
public ClassLearningProblemConfigurator getConfigurator()
ComponentConfigJavaGenerator. The configurator
provides set and get methods for the configuration options of
a component.
getConfigurator in class Componentpublic static Collection<ConfigOption<?>> createConfigOptions()
public static String getName()
public void init()
throws ComponentInitException
Component
init in class ComponentComponentInitException - This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
rethrow occuring exception as ComponentInitException and
giving an error message as well as the actualy exception by
using the constructor ComponentInitException.ComponentInitException(String, Throwable).public ClassScore computeScore(Description description)
computeScore in class LearningProblemdescription - The description for which to compute coverage.
public boolean isEquivalenceProblem()
public double getAccuracy(Description description)
LearningProblem
getAccuracy in class LearningProblem
public double getAccuracyOrTooWeak(Description description,
double noise)
LearningProblemLearningProblem.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.
getAccuracyOrTooWeak in class LearningProblem
@Deprecated
public double getAccuracyOrTooWeakStandard(Description description,
double minAccuracy)
public NamedClass getClassToDescribe()
public EvaluatedDescriptionClass evaluate(Description description)
LearningProblem
evaluate in class LearningProblemdescription - Description to evaluate.
public boolean isConsistent(Description description)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||