public class FbetaScore extends SimpleBinaryClassMetric
F1Score
, where
β indicates the level of preference for precision over recall.
This score is only valid for binary classification problems.fn, fp, tn, tp
Constructor and Description |
---|
FbetaScore(double beta)
Creates a new Fβ score
|
FbetaScore(FbetaScore toClone)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
FbetaScore |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Returns the name to present for this score
|
double |
getScore()
Computes the score for the results that have been enrolled via
ClassificationScore.addResult(jsat.classifiers.CategoricalResults, int, double) |
int |
hashCode() |
addResult, addResults, lowerIsBetter, prepare
public FbetaScore(double beta)
beta
- the weight to apply to precision over recall, must be in (0,
∞)public FbetaScore(FbetaScore toClone)
toClone
- the object to copypublic double getScore()
ClassificationScore
ClassificationScore.addResult(jsat.classifiers.CategoricalResults, int, double)
getScore
in interface ClassificationScore
getScore
in class SimpleBinaryClassMetric
public boolean equals(Object obj)
equals
in interface ClassificationScore
equals
in class Object
public int hashCode()
hashCode
in interface ClassificationScore
hashCode
in class Object
public FbetaScore clone()
clone
in interface ClassificationScore
clone
in class SimpleBinaryClassMetric
public String getName()
ClassificationScore
Copyright © 2017. All rights reserved.