Package se.hb.jcp.cp.measures
Class ObservedUnconfidenceCriterion
- java.lang.Object
-
- se.hb.jcp.cp.measures.ObservedUnconfidenceCriterion
-
- All Implemented Interfaces:
IMeasure,IObservedMeasure
public class ObservedUnconfidenceCriterion extends java.lang.Object implements IObservedMeasure
The UO/Observed Unconfidence criterion is a prior efficiency measure based on the (un)confidence of the point prediction. 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 ObservedUnconfidenceCriterion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompute(ConformalClassification prediction, double trueLabel)Computes the OU/Observed Unconfidence criterion measure for this prediction and true label.java.lang.StringgetName()Get the name of this measure.
-
-
-
Method Detail
-
compute
public double compute(ConformalClassification prediction, double trueLabel)
Computes the OU/Observed Unconfidence criterion measure for this prediction and true label.- Specified by:
computein interfaceIObservedMeasure- Parameters:
prediction- the prediction.trueLabel- the true label of the instance.- Returns:
- the Observed Unconfidence criterion measure for this prediction. Small values are preferable.
-
-