Class LabelEvaluationUtil.PRCurve

java.lang.Object
org.tribuo.classification.evaluation.LabelEvaluationUtil.PRCurve
Enclosing class:
LabelEvaluationUtil

public static class LabelEvaluationUtil.PRCurve extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    final double[]
    The precision at the corresponding threshold.
    final double[]
    The recall at the corresponding threshold.
    final double[]
    The threshold values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PRCurve(double[] precision, double[] recall, double[] thresholds)
    Constructs a precision-recall curve.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • precision

      public final double[] precision
      The precision at the corresponding threshold.
    • recall

      public final double[] recall
      The recall at the corresponding threshold.
    • thresholds

      public final double[] thresholds
      The 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.