|
|||||||||
| 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.fuzzydll.FuzzyPosNegLP
org.dllearner.learningproblems.fuzzydll.FuzzyPosNegLPStandard
public class FuzzyPosNegLPStandard
The aim of this learning problem is to learn a concept definition such that the positive examples and the negative examples do not follow. It is 2-valued, because we only distinguish between covered and non-covered examples. (A 3-valued problem distinguishes between covered examples, examples covered by the negation of the concept, and all other examples.) The 2-valued learning problem is often more useful for Description Logics due to (the Open World Assumption and) the fact that negative knowledge, e.g. that a person does not have a child, is or cannot be expressed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dllearner.learningproblems.fuzzydll.FuzzyPosNegLP |
|---|
FuzzyPosNegLP.UseMultiInstanceChecks |
| Constructor Summary | |
|---|---|
FuzzyPosNegLPStandard(AbstractReasonerComponent reasoningService)
|
|
FuzzyPosNegLPStandard(AbstractReasonerComponent reasoningService,
SortedSet<Individual> positiveExamples,
SortedSet<Individual> negativeExamples)
|
|
| Method Summary | |
|---|---|
ScorePosNeg |
computeScore(Description concept)
Computes score of a given concept using the reasoner. |
int |
coveredNegativeExamplesOrTooWeak(Description concept)
This method computes (using the reasoner) whether a concept is too weak. |
static Collection<ConfigOption<?>> |
createConfigOptions()
|
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). |
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)
|
FuzzyPosNegLPStandardConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}. |
double |
getFMeasureOrTooWeakApprox(Description description,
double noise)
Deprecated. |
double |
getFMeasureOrTooWeakExact(Description description,
double noise)
|
static String |
getName()
|
double |
getPredAccuracyOrTooWeakExact(Description description,
double noise)
|
void |
init()
Method to be called after the component has been configured. |
| Methods inherited from class org.dllearner.learningproblems.fuzzydll.FuzzyPosNegLP |
|---|
applyConfigEntry, getNegativeExamples, getPercentPerLengthUnit, getPositiveExamples, setNegativeExamples, setPositiveExamples |
| 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 FuzzyPosNegLPStandard(AbstractReasonerComponent reasoningService)
public FuzzyPosNegLPStandard(AbstractReasonerComponent reasoningService,
SortedSet<Individual> positiveExamples,
SortedSet<Individual> negativeExamples)
| Method Detail |
|---|
public FuzzyPosNegLPStandardConfigurator getConfigurator()
AbstractComponent
getConfigurator in class AbstractComponentpublic void init()
Component
init in interface Componentinit in class FuzzyPosNegLPpublic static String getName()
public static Collection<ConfigOption<?>> createConfigOptions()
public int coveredNegativeExamplesOrTooWeak(Description concept)
coveredNegativeExamplesOrTooWeak in class FuzzyPosNegLPconcept - The concept to test.
TODO: Performance could be slightly improved by counting the number of
covers instead of using sets and counting their size.public ScorePosNeg computeScore(Description concept)
UseMultiInstanceChecks.TWO_CHECKS as if it were
UseMultiInstanceChecks.ONE_CHECKS (it does not make much sense
to implement TWO_CHECKS in this function, because we have to test all
examples to create a score object anyway).
NOTE: The options above are no longer supported, because of interface changes (the options
are more or less only relevant in combination with DIG).
computeScore in class AbstractLearningProblemconcept - The concept to test.
PosNegLP.UseMultiInstanceCheckspublic 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 getPredAccuracyOrTooWeakExact(Description description,
double noise)
public double getFMeasureOrTooWeakExact(Description description,
double noise)
@Deprecated
public double getFMeasureOrTooWeakApprox(Description description,
double noise)
public EvaluatedDescription evaluate(Description description)
AbstractLearningProblem
evaluate in class AbstractLearningProblemdescription - Description to evaluate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||