org.dllearner.learningproblems
Class ScoreThreeValued
java.lang.Object
org.dllearner.core.Score
org.dllearner.learningproblems.ScorePosNeg
org.dllearner.learningproblems.ScoreThreeValued
- All Implemented Interfaces:
- Serializable
public class ScoreThreeValued
- extends ScorePosNeg
Computes the score (a negative value) by comparing the classification results
with ideal results.
TODO: The implementation is not very efficient, because some things are
only computed to be able to present the score results. This means that
it would be better to compute only the necessary computations and do
the other ones only when they are needed to calculate statistical values.
- Author:
- Jens Lehmann
- See Also:
- Serialized Form
|
Constructor Summary |
ScoreThreeValued(int conceptLength,
double accuracyPenalty,
double errorPenalty,
boolean penaliseNeutralExamples,
double percentPerLengthUnit,
SortedSet<Individual> posClassified,
SortedSet<Individual> neutClassified,
SortedSet<Individual> negClassified,
SortedSet<Individual> posExamples,
SortedSet<Individual> neutExamples,
SortedSet<Individual> negExamples)
|
ScoreThreeValued
public ScoreThreeValued(int conceptLength,
double accuracyPenalty,
double errorPenalty,
boolean penaliseNeutralExamples,
double percentPerLengthUnit,
SortedSet<Individual> posClassified,
SortedSet<Individual> neutClassified,
SortedSet<Individual> negClassified,
SortedSet<Individual> posExamples,
SortedSet<Individual> neutExamples,
SortedSet<Individual> negExamples)
getScoreValue
public double getScoreValue()
- Specified by:
getScoreValue in class ScorePosNeg
toString
public String toString()
- Overrides:
toString in class Object
getNegClassified
public SortedSet<Individual> getNegClassified()
getPosClassified
public SortedSet<Individual> getPosClassified()
getCoveredNegatives
public Set<Individual> getCoveredNegatives()
- Specified by:
getCoveredNegatives in class ScorePosNeg
getCoveredPositives
public Set<Individual> getCoveredPositives()
- Specified by:
getCoveredPositives in class ScorePosNeg
getNotCoveredPositives
public Set<Individual> getNotCoveredPositives()
- Specified by:
getNotCoveredPositives in class ScorePosNeg
getModifiedLengthScore
public ScorePosNeg getModifiedLengthScore(int newLength)
- Description copied from class:
ScorePosNeg
- The score of a concept depends on how good it classifies the
examples of a learning problem and the length of the concept
itself. If a given concept is known to have equal classification
properties than the concept this score object is based on, then
this method can be used to calculate its score value by using the
length of this concept as parameter.
- Specified by:
getModifiedLengthScore in class ScorePosNeg
- Parameters:
newLength - Length of the concept.
- Returns:
- Score.
getAccuracy
public double getAccuracy()
- Description copied from class:
Score
- This method returns a value, which indicates how accurate a
class description solves a learning problem.
- Specified by:
getAccuracy in class Score
- Returns:
- A value between 0 and 1 indicating the quality (of a class description).
- See Also:
AbstractLearningProblem.getAccuracy(Description)
getNotCoveredNegatives
public Set<Individual> getNotCoveredNegatives()
- Specified by:
getNotCoveredNegatives in class ScorePosNeg
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann