public class EvaluatedDescriptionPosNeg extends EvaluatedDescription<ScorePosNeg>
Constructor and Description |
---|
EvaluatedDescriptionPosNeg(org.semanticweb.owlapi.model.OWLClassExpression description,
ScorePosNeg score)
Constructs an evaluated description using its score.
|
Modifier and Type | Method and Description |
---|---|
String |
asJSON()
This convenience method can be used to store and exchange evaluated
descriptions by transforming them to a JSON string.
|
double |
getAccuracy() |
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getCoveredNegatives() |
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getCoveredPositives() |
static org.json.JSONArray |
getJSONArray(Set<org.semanticweb.owlapi.model.OWLIndividual> individuals) |
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getNotCoveredNegatives() |
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getNotCoveredPositives() |
ScorePosNeg |
getScore()
Gets the score of this description.
|
String |
toString() |
getDescriptionDepth, getDescriptionLength
compareTo, getDescription, setDescription
public EvaluatedDescriptionPosNeg(org.semanticweb.owlapi.model.OWLClassExpression description, ScorePosNeg score)
description
- The description, which was evaluated.score
- The score of the description.public double getAccuracy()
getAccuracy
in class EvaluatedHypothesis<org.semanticweb.owlapi.model.OWLClassExpression,ScorePosNeg>
Score.getAccuracy()
public ScorePosNeg getScore()
getScore
in class EvaluatedHypothesis<org.semanticweb.owlapi.model.OWLClassExpression,ScorePosNeg>
ScorePosNeg
public Set<org.semanticweb.owlapi.model.OWLIndividual> getCoveredNegatives()
ScorePosNeg.getCoveredNegatives()
public Set<org.semanticweb.owlapi.model.OWLIndividual> getCoveredPositives()
ScorePosNeg.getCoveredPositives()
public Set<org.semanticweb.owlapi.model.OWLIndividual> getNotCoveredNegatives()
ScorePosNeg.getNotCoveredNegatives()
public Set<org.semanticweb.owlapi.model.OWLIndividual> getNotCoveredPositives()
ScorePosNeg.getNotCoveredPositives()
public String asJSON()
asJSON
in class EvaluatedDescription<ScorePosNeg>
public String toString()
toString
in class EvaluatedHypothesis<org.semanticweb.owlapi.model.OWLClassExpression,ScorePosNeg>
public static org.json.JSONArray getJSONArray(Set<org.semanticweb.owlapi.model.OWLIndividual> individuals)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann