public class Recall extends java.lang.Object implements ClassificationMetric
Sensitivity
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Recall |
instance
Default instance.
|
Constructor and Description |
---|
Recall() |
Modifier and Type | Method and Description |
---|---|
static double |
of(int[] truth,
int[] prediction)
Calculates the recall/sensitivity.
|
double |
score(int[] truth,
int[] prediction)
Returns a score to measure the quality of classification.
|
java.lang.String |
toString() |
public static final Recall instance
public double score(int[] truth, int[] prediction)
ClassificationMetric
score
in interface ClassificationMetric
truth
- the true class labels.prediction
- the predicted class labels.public static double of(int[] truth, int[] prediction)
public java.lang.String toString()
toString
in class java.lang.Object