|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.Score
org.dllearner.learningproblems.ScorePosNeg
org.dllearner.learningproblems.ScoreTwoValued
public class ScoreTwoValued
Calculates accuracy and score (with respect to some length penalty) of a class description. TODO: In fact, a score value influencing a learning algorithm should not be calculated here, but rather in a separate heuristic as there are many methods to calculate such a value. This class should only be used for computing example coverage, accuracy etc.
| Constructor Summary | |
|---|---|
ScoreTwoValued(int conceptLength,
double percentPerLengthUnit,
Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg)
Deprecated. |
|
ScoreTwoValued(int conceptLength,
double percentPerLengthUnit,
Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg,
double accuracy)
|
|
ScoreTwoValued(Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg)
|
|
| Method Summary | |
|---|---|
double |
getAccuracy()
This method returns a value, which indicates how accurate a class description solves a learning problem. |
Set<Individual> |
getCoveredNegatives()
|
Set<Individual> |
getCoveredPositives()
|
ScorePosNeg |
getModifiedLengthScore(int newLength)
The score of a concept depends on how good it classifies the examples of a learning problem and the length of the concept itself. |
Set<Individual> |
getNotCoveredNegatives()
|
Set<Individual> |
getNotCoveredPositives()
|
double |
getScoreValue()
score = accuracy - 1 - length * length penalty |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScoreTwoValued(Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg)
@Deprecated
public ScoreTwoValued(int conceptLength,
double percentPerLengthUnit,
Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg)
public ScoreTwoValued(int conceptLength,
double percentPerLengthUnit,
Set<Individual> posAsPos,
Set<Individual> posAsNeg,
Set<Individual> negAsPos,
Set<Individual> negAsNeg,
double accuracy)
| Method Detail |
|---|
public double getAccuracy()
Score
getAccuracy in class ScoreAbstractLearningProblem.getAccuracy(Description)public double getScoreValue()
getScoreValue in class ScorePosNegpublic String toString()
toString in class Objectpublic Set<Individual> getCoveredNegatives()
getCoveredNegatives in class ScorePosNegpublic Set<Individual> getCoveredPositives()
getCoveredPositives in class ScorePosNegpublic Set<Individual> getNotCoveredPositives()
getNotCoveredPositives in class ScorePosNegpublic Set<Individual> getNotCoveredNegatives()
getNotCoveredNegatives in class ScorePosNegpublic ScorePosNeg getModifiedLengthScore(int newLength)
ScorePosNeg
getModifiedLengthScore in class ScorePosNegnewLength - Length of the concept.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||