smile.validation
Class FDR
- java.lang.Object
-
- smile.validation.FDR
-
- All Implemented Interfaces:
- ClassificationMeasure
public class FDR extends java.lang.Object implements ClassificationMeasure
The false discovery rate (FDR) is ratio of false positives to combined true and false positives, which is actually 1 - precision.FDR = FP / (TP + FP)
-
-
Constructor Summary
Constructors Constructor and Description FDR()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublemeasure(int[] truth, int[] prediction)Returns an index to measure the quality of classification.java.lang.StringtoString()
-
-
-
Method Detail
-
measure
public double measure(int[] truth, int[] prediction)Description copied from interface:ClassificationMeasureReturns an index to measure the quality of classification.- Specified by:
measurein interfaceClassificationMeasure- Parameters:
truth- the true class labels.prediction- the predicted class labels.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG