jsat.classifiers.evaluation
Class FbetaScore
- java.lang.Object
-
- jsat.classifiers.evaluation.SimpleBinaryClassMetric
-
- jsat.classifiers.evaluation.FbetaScore
-
- All Implemented Interfaces:
- java.io.Serializable, ClassificationScore
public class FbetaScore extends SimpleBinaryClassMetric
The Fβ score is the generalization ofF1Score, where β indicates the level of preference for precision over recall. This score is only valid for binary classification problems.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description FbetaScore(double beta)Creates a new Fβ scoreFbetaScore(FbetaScore toClone)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FbetaScoreclone()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
-
FbetaScore
public FbetaScore(double beta)
Creates a new Fβ score- Parameters:
beta- the weight to apply to precision over recall, must be in (0, ∞)
-
FbetaScore
public FbetaScore(FbetaScore toClone)
Copy constructor- Parameters:
toClone- the object to copy
-
-
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 FbetaScore 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