|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.core.EvaluatedDescription
org.dllearner.learningproblems.EvaluatedDescriptionPosNeg
public class EvaluatedDescriptionPosNeg
This represents a class description, which has been evaluated by the learning algorithm, i.e. it has been checked which examples it covers. It can be used as return value for learning algorithms to make it easier for applications to assess how good an offered class description is and how it classifies particular examples.
| Constructor Summary | |
|---|---|
EvaluatedDescriptionPosNeg(Description description,
ScorePosNeg score)
Constructs an evaluated description using its score. |
|
EvaluatedDescriptionPosNeg(Description description,
Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg)
Constructs an evaluated description using example coverage. |
|
| Method Summary | |
|---|---|
String |
asJSON()
This convenience method can be used to store and exchange evaluated descriptions by transforming them to a JSON string. |
double |
getAccuracy()
|
Set<Individual> |
getCoveredNegatives()
|
Set<Individual> |
getCoveredPositives()
|
Set<Individual> |
getNotCoveredNegatives()
|
Set<Individual> |
getNotCoveredPositives()
|
ScorePosNeg |
getScore()
Gets the score of this description. |
String |
toString()
|
| Methods inherited from class org.dllearner.core.EvaluatedDescription |
|---|
getDescription, getDescriptionDepth, getDescriptionLength, getSparqlQuery, setDescription |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluatedDescriptionPosNeg(Description description,
ScorePosNeg score)
description - The description, which was evaluated.score - The score of the description.
public EvaluatedDescriptionPosNeg(Description description,
Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg)
description - The description, which was evaluated.posAsPos - Positive examples classified as positive by (i.e. instance of) the description.posAsNeg - Positive examples classified as negative by (i.e. not instance of) the description.negAsPos - Negative examples classified as positive by (i.e. instance of) the description.negAsNeg - Negative examples classified as negative by (i.e. not instance of) the description.| Method Detail |
|---|
public double getAccuracy()
getAccuracy in class EvaluatedDescriptionScore.getAccuracy()public ScorePosNeg getScore()
ScorePosNegpublic Set<Individual> getCoveredNegatives()
ScorePosNeg.getCoveredNegatives()public Set<Individual> getCoveredPositives()
ScorePosNeg.getCoveredPositives()public Set<Individual> getNotCoveredNegatives()
ScorePosNeg.getNotCoveredNegatives()public Set<Individual> getNotCoveredPositives()
ScorePosNeg.getNotCoveredPositives()public String asJSON()
asJSON in class EvaluatedDescriptionpublic String toString()
toString in class EvaluatedDescription
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||