|
|||||||||
| 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
org.dllearner.learningproblems.ClassLearningProblem
public class ClassLearningProblem
The problem of learning the description of an existing class in an OWL ontology.
| Constructor Summary | |
|---|---|
ClassLearningProblem(AbstractReasonerComponent reasoner)
|
|
| Method Summary | |
|---|---|
ClassScore |
computeScore(Description description)
Computes the Score of a given class description
with respect to this learning problem. |
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). |
boolean |
followsFromKB(Description description)
|
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 AbstractLearningProblem.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 |
getAccuracyOrTooWeakApprox(Description description,
double noise)
|
double |
getAccuracyOrTooWeakExact(Description description,
double noise)
|
NamedClass |
getClassToDescribe()
|
double |
getComissionError()
|
ClassLearningProblemConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}. |
double |
getGeneralisedPrecision()
|
double |
getGeneralisedRecall()
|
double |
getInductionRate()
|
double |
getMatchRate()
|
static String |
getName()
|
double |
getOmissionError()
|
double |
getPrecision(Description description)
|
double |
getPredictiveAccuracy()
|
double |
getRecall(Description description)
|
void |
init()
Method to be called after the component has been configured. |
boolean |
isConsistent(Description description)
|
boolean |
isEquivalenceProblem()
|
static double |
p1(int success,
int total)
|
static double |
p3(double p1,
int total)
|
| Methods inherited from class org.dllearner.core.AbstractLearningProblem |
|---|
changeReasonerComponent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLearningProblem(AbstractReasonerComponent reasoner)
| Method Detail |
|---|
public ClassLearningProblemConfigurator getConfigurator()
AbstractComponent
getConfigurator in class AbstractComponentpublic static Collection<ConfigOption<?>> createConfigOptions()
public static String getName()
public void init()
throws ComponentInitException
Component
ComponentInitException - 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)
AbstractLearningProblemScore 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.
computeScore in class AbstractLearningProblemdescription - A class description (as solution candidate for this learning problem).
Score object.public boolean isEquivalenceProblem()
public double getAccuracy(Description description)
AbstractLearningProblem
getAccuracy in class AbstractLearningProblem
public double getAccuracyOrTooWeak(Description description,
double noise)
AbstractLearningProblemAbstractLearningProblem.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 AbstractLearningProblem
public double getAccuracyOrTooWeakApprox(Description description,
double noise)
public double getAccuracyOrTooWeakExact(Description description,
double noise)
public double getRecall(Description description)
public double getPrecision(Description description)
public double getPredictiveAccuracy()
public double getMatchRate()
public double getOmissionError()
public double getInductionRate()
public double getComissionError()
public double getGeneralisedRecall()
public double getGeneralisedPrecision()
public static double p3(double p1,
int total)
public static double p1(int success,
int total)
public NamedClass getClassToDescribe()
public EvaluatedDescriptionClass evaluate(Description description)
AbstractLearningProblem
evaluate in class AbstractLearningProblemdescription - Description to evaluate.
public boolean isConsistent(Description description)
public boolean followsFromKB(Description description)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||