Class LabelEvaluationUtil.ROC
java.lang.Object
org.tribuo.classification.evaluation.LabelEvaluationUtil.ROC
- Enclosing class:
- LabelEvaluationUtil
Stores the ROC curve as three arrays: the false positive rate, the true positive rate,
and the thresholds associated with those rates.
By definition if both tpr and fpr are zero for the first value, the threshold is positive infinity.
Not yet a record, but it will be one day.
-
Field Summary
Modifier and TypeFieldDescriptionfinal double[]
The false positive rate at the corresponding threshold.final double[]
The threshold values.final double[]
The true positive rate at the corresponding threshold. -
Constructor Summary
ConstructorDescriptionROC
(double[] fpr, double[] tpr, double[] thresholds) Constructs an ROC curve. -
Method Summary
-
Field Details
-
fpr
public final double[] fprThe false positive rate at the corresponding threshold. -
tpr
public final double[] tprThe true positive rate at the corresponding threshold. -
thresholds
public final double[] thresholdsThe threshold values.
-
-
Constructor Details
-
ROC
public ROC(double[] fpr, double[] tpr, double[] thresholds) Constructs an ROC curve.- Parameters:
fpr
- The false positive rates.tpr
- The true positive rates.thresholds
- The classification thresholds for the relevant rates.
-