Class LabelEvaluationUtil.ROC

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

public static class LabelEvaluationUtil.ROC extends Object
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
    Modifier and Type
    Field
    Description
    final 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

    Constructors
    Constructor
    Description
    ROC(double[] fpr, double[] tpr, double[] thresholds)
    Constructs an ROC curve.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • fpr

      public final double[] fpr
      The false positive rate at the corresponding threshold.
    • tpr

      public final double[] tpr
      The true positive rate at the corresponding threshold.
    • thresholds

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