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
FieldsModifier and TypeFieldDescriptionfinal double[]
final double[]
final double[]
-
Constructor Summary
ConstructorsConstructorDescriptionPRCurve
(double[] precision, double[] recall, double[] thresholds) Constructs a precision-recall curve. -
Method Summary
-
Field Details
-
precision
public final double[] precision -
recall
public final double[] recall -
thresholds
public final double[] thresholds
-
-
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.
-