public class Fallout extends java.lang.Object implements ClassificationMetric
FPR = FP / N = FP / (FP + TN)
Fall-out is actually Type I error and closely related to specificity
(1 - specificity).| Modifier and Type | Field and Description |
|---|---|
static Fallout |
instance
Default instance.
|
| Constructor and Description |
|---|
Fallout() |
| Modifier and Type | Method and Description |
|---|---|
static double |
of(int[] truth,
int[] prediction)
Calculates the false alarm rate.
|
double |
score(int[] truth,
int[] prediction)
Returns a score to measure the quality of classification.
|
java.lang.String |
toString() |
public static final Fallout instance
public double score(int[] truth,
int[] prediction)
ClassificationMetricscore in interface ClassificationMetrictruth - 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