jsat.classifiers.evaluation
Class Precision
- java.lang.Object
-
- jsat.classifiers.evaluation.SimpleBinaryClassMetric
-
- jsat.classifiers.evaluation.Precision
-
- All Implemented Interfaces:
- java.io.Serializable, ClassificationScore
public class Precision extends SimpleBinaryClassMetric
Evaluates a classifier based on the Precision, where the class of index 0 is considered the positive class. This score is only valid for binary classification problems.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Precision()Precision(Precision toClone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Precisionclone()booleanequals(java.lang.Object obj)java.lang.StringgetName()Returns the name to present for this scoredoublegetScore()Computes the score for the results that have been enrolled viaClassificationScore.addResult(jsat.classifiers.CategoricalResults, int, double)inthashCode()-
Methods inherited from class jsat.classifiers.evaluation.SimpleBinaryClassMetric
addResult, addResults, lowerIsBetter, prepare
-
-
-
-
Constructor Detail
-
Precision
public Precision()
-
Precision
public Precision(Precision toClone)
-
-
Method Detail
-
getScore
public double getScore()
Description copied from interface:ClassificationScoreComputes the score for the results that have been enrolled viaClassificationScore.addResult(jsat.classifiers.CategoricalResults, int, double)- Specified by:
getScorein interfaceClassificationScore- Specified by:
getScorein classSimpleBinaryClassMetric- Returns:
- the score for the current results
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfaceClassificationScore- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceClassificationScore- Overrides:
hashCodein classjava.lang.Object
-
clone
public Precision clone()
- Specified by:
clonein interfaceClassificationScore- Specified by:
clonein classSimpleBinaryClassMetric
-
getName
public java.lang.String getName()
Description copied from interface:ClassificationScoreReturns the name to present for this score- Returns:
- the score name
-
-
DataMelt 3.0 © DataMelt by jWork.ORG