Class LabelEvaluationUtil.PRCurve
java.lang.Object
org.tribuo.classification.evaluation.LabelEvaluationUtil.PRCurve
- Enclosing class:
- LabelEvaluationUtil
Stores the Precision-Recall curve as three arrays: the precisions, the recalls,
and the thresholds associated with those values.
Not yet a record, but it will be one day.
-
Field Summary
Modifier and TypeFieldDescriptionfinal double[]
The precision at the corresponding threshold.final double[]
The recall at the corresponding threshold.final double[]
The threshold values. -
Constructor Summary
ConstructorDescriptionPRCurve
(double[] precision, double[] recall, double[] thresholds) Constructs a precision-recall curve. -
Method Summary
-
Field Details
-
precision
public final double[] precisionThe precision at the corresponding threshold. -
recall
public final double[] recallThe recall at the corresponding threshold. -
thresholds
public final double[] thresholdsThe threshold values.
-
-
Constructor Details
-
PRCurve
public PRCurve(double[] precision, double[] recall, double[] thresholds) Constructs a precision-recall curve.- Parameters:
precision
- The precisions.recall
- The recalls.thresholds
- The classification thresholds for the precisions and recalls.
-