Class ObservedFuzzinessCriterion

  • All Implemented Interfaces:
    IMeasure, IObservedMeasure

    public class ObservedFuzzinessCriterion
    extends java.lang.Object
    implements IObservedMeasure
    The OF/Observed Fuzziness criterion is a prior efficiency measure based on the sum of all p-values for false labels. See [V. Vovk, V. Fedorova, I. Nouretdinov and A. Gammerman, "Criteria of Efficiency for Conformal Prediction", COPA 2016, LNAI 9653, pp. 23-39, 2016] for the definitions used here.
    Author:
    anders.gidenstam(at)hb.se
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double compute​(ConformalClassification prediction, double trueLabel)
      Computes the OF/Observed Fuzziness criterion measure for this prediction and true label.
      java.lang.String getName()
      Get the name of this measure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObservedFuzzinessCriterion

        public ObservedFuzzinessCriterion()
    • Method Detail

      • compute

        public double compute​(ConformalClassification prediction,
                              double trueLabel)
        Computes the OF/Observed Fuzziness criterion 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 Fuzziness criterion measure for this prediction. Small values are preferable.
      • getName

        public java.lang.String getName()
        Get the name of this measure.
        Specified by:
        getName in interface IMeasure
        Returns:
        the name of this measure.