jsat.classifiers.evaluation
Class F1Score
- java.lang.Object
-
- jsat.classifiers.evaluation.SimpleBinaryClassMetric
-
- jsat.classifiers.evaluation.F1Score
-
- All Implemented Interfaces:
- java.io.Serializable, ClassificationScore
public class F1Score extends SimpleBinaryClassMetric
The F1 score is the harmonic mean ofPrecisionandRecall. This score is only valid for binary classification problems.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description F1Scoreclone()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
-
F1Score
public F1Score()
-
F1Score
public F1Score(F1Score 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 F1Score 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