Class SumCriterion

  • All Implemented Interfaces:
    IMeasure, IPriorMeasure

    public class SumCriterion
    extends java.lang.Object
    implements IPriorMeasure
    The S/Sum criterion is a prior efficiency measure based on the sum of the p-values. 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
    • Constructor Summary

      Constructors 
      Constructor Description
      SumCriterion()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double compute​(ConformalClassification prediction)
      Computes the Sum criterion measure for this prediction.
      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

      • SumCriterion

        public SumCriterion()
    • Method Detail

      • compute

        public double compute​(ConformalClassification prediction)
        Computes the Sum criterion measure for this prediction.
        Specified by:
        compute in interface IPriorMeasure
        Parameters:
        prediction - the prediction.
        Returns:
        the Sum 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.