jsat.classifiers.evaluation
Class Recall
- java.lang.Object
-
- jsat.classifiers.evaluation.SimpleBinaryClassMetric
-
- jsat.classifiers.evaluation.Recall
-
- All Implemented Interfaces:
- java.io.Serializable, ClassificationScore
public class Recall extends SimpleBinaryClassMetric
Evaluates a classifier based on the Recall rate, 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 Recall()Creates a new Recall evaluatorRecall(Recall toClone)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Recallclone()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
-
Recall
public Recall()
Creates a new Recall evaluator
-
Recall
public Recall(Recall 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 Recall 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