Class Fallout
java.lang.Object
smile.validation.metric.Fallout
- All Implemented Interfaces:
Serializable, ToDoubleBiFunction<int[],int[]>, ClassificationMetric
Fall-out, false alarm rate, or false positive rate (FPR)
FPR = FP / N = FP / (FP + TN)
Fall-out is actually Type I error and closely related to specificity
(1 - specificity).- See Also:
-
Field Details
-
instance
Default instance.
-
-
Constructor Details
-
Fallout
public Fallout()Constructor.
-
-
Method Details
-
score
public double score(int[] truth, int[] prediction) Description copied from interface:ClassificationMetricReturns a score to measure the quality of classification.- Specified by:
scorein interfaceClassificationMetric- Parameters:
truth- the true class labels.prediction- the predicted class labels.- Returns:
- the metric.
-
of
public static double of(int[] truth, int[] prediction) Calculates the false alarm rate.- Parameters:
truth- the ground truth.prediction- the prediction.- Returns:
- the metric.
-
toString
-