Class ObservedProbabilityLogLoss

  • All Implemented Interfaces:
    IMeasure, IObservedMeasure, IObservedProbabilisticMeasure

    public class ObservedProbabilityLogLoss
    extends java.lang.Object
    implements IObservedProbabilisticMeasure
    The observed log loss measure depends on the prediction made and the true label. See [V. Vovk, I. Petej, "Venn-Abers Predictors", On-line Compression Modelling Project (New Series) Working Paper #7, 2012] for the definitions used here.
    Author:
    anders.gidenstam(at)hb.se
    • Constructor Detail

      • ObservedProbabilityLogLoss

        public ObservedProbabilityLogLoss()
    • Method Detail

      • compute

        public double compute​(ConformalClassification prediction,
                              double trueLabel)
        Description copied from interface: IObservedMeasure
        Compute the measure for the supplied conformal prediction and true label.
        Specified by:
        compute in interface IObservedMeasure
        Parameters:
        prediction - a ConformalClassification.
        trueLabel - the true label of the instance.
        Returns:
        the measure for the supplied prediction.
      • getName

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