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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionROC
(double[] fpr, double[] tpr, double[] thresholds) Constructs an ROC curve. -
Method Summary
-
Field Details
-
fpr
public final double[] fpr -
tpr
public final double[] tpr -
thresholds
public final double[] thresholds
-
-
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.
-