public class PosNegLPStandard extends PosNegLP implements Cloneable
Constructor and Description |
---|
PosNegLPStandard() |
PosNegLPStandard(AbstractReasonerComponent reasoningService) |
PosNegLPStandard(AbstractReasonerComponent reasoningService,
SortedSet<org.semanticweb.owlapi.model.OWLIndividual> positiveExamples,
SortedSet<org.semanticweb.owlapi.model.OWLIndividual> negativeExamples) |
PosNegLPStandard(PosNegLP lp)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
ScorePosNeg |
computeScore(org.semanticweb.owlapi.model.OWLClassExpression concept,
double noise)
Computes score of a given concept using the reasoner.
|
EvaluatedDescription |
evaluate(org.semanticweb.owlapi.model.OWLClassExpression description,
double noise)
Evaluates the hypothesis by computing the score and returning an
evaluated hypothesis of the correct type (ClassLearningProblem
returns EvaluatedDescriptionClass instead of generic EvaluatedDescription).
|
double |
getAccuracyOrTooWeak(org.semanticweb.owlapi.model.OWLClassExpression description,
double noise)
This method computes the accuracy and returns -1 instead of the accuracy if
the accuracy of the hypothesis is below the given threshold and
the accuracy of all more special w.r.t.
|
void |
init()
Method to be called after the component has been configured.
|
getAccuracyMethod, getNegativeExamples, getPercentPerLengthUnit, getPositiveExamples, isUseRetrievalForClassification, setAccuracyMethod, setNegativeExamples, setPercentPerLengthUnit, setPositiveExamples, setUseRetrievalForClassification
changeReasonerComponent, getExampleLoaderHelper, getReasoningUtil, setExampleLoaderHelper, setReasoner, setReasoningUtil
computeScore, evaluate, getAccuracyOrTooWeak, getReasoner
isInitialized
public PosNegLPStandard()
public PosNegLPStandard(AbstractReasonerComponent reasoningService)
public PosNegLPStandard(PosNegLP lp)
lp
- the learning problempublic PosNegLPStandard(AbstractReasonerComponent reasoningService, SortedSet<org.semanticweb.owlapi.model.OWLIndividual> positiveExamples, SortedSet<org.semanticweb.owlapi.model.OWLIndividual> negativeExamples)
public void init() throws ComponentInitException
Component
init
in interface Component
init
in class PosNegLP
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public ScorePosNeg computeScore(org.semanticweb.owlapi.model.OWLClassExpression concept, double noise)
computeScore
in class AbstractLearningProblem<ScorePosNeg<org.semanticweb.owlapi.model.OWLNamedIndividual>,org.semanticweb.owlapi.model.OWLClassExpression,EvaluatedDescription<ScorePosNeg<org.semanticweb.owlapi.model.OWLNamedIndividual>>>
concept
- The concept to test.noise
- the (approximated) value of noise within the examplespublic double getAccuracyOrTooWeak(org.semanticweb.owlapi.model.OWLClassExpression description, double noise)
AbstractLearningProblem
getAccuracyOrTooWeak
in class AbstractLearningProblem<ScorePosNeg<org.semanticweb.owlapi.model.OWLNamedIndividual>,org.semanticweb.owlapi.model.OWLClassExpression,EvaluatedDescription<ScorePosNeg<org.semanticweb.owlapi.model.OWLNamedIndividual>>>
public EvaluatedDescription evaluate(org.semanticweb.owlapi.model.OWLClassExpression description, double noise)
AbstractLearningProblem
evaluate
in class AbstractLearningProblem<ScorePosNeg<org.semanticweb.owlapi.model.OWLNamedIndividual>,org.semanticweb.owlapi.model.OWLClassExpression,EvaluatedDescription<ScorePosNeg<org.semanticweb.owlapi.model.OWLNamedIndividual>>>
description
- Hypothesis to evaluate.noise
- the (approximated) value of noise within the examplespublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann