Class ObservedAccuracy

    • Constructor Summary

      Constructors 
      Constructor Description
      ObservedAccuracy​(double significanceLevel)
      Creates an Observed Accuracy measure.
    • Constructor Detail

      • ObservedAccuracy

        public ObservedAccuracy​(double significanceLevel)
        Creates an Observed Accuracy measure.
        Parameters:
        significanceLevel - the significance level used for the label sets.
    • Method Detail

      • compute

        public double compute​(ConformalClassification prediction,
                              double trueLabel)
        Computes the Observed Accuracy measure for this prediction and true label.
        Specified by:
        compute in interface IObservedMeasure
        Parameters:
        prediction - the prediction.
        trueLabel - the true label of the instance.
        Returns:
        the Observed Accuracy measure for this prediction. Large values are preferable.