Package se.hb.jcp.cp.measures
Class ObservedFuzzinessCriterion
- java.lang.Object
-
- se.hb.jcp.cp.measures.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
-
-
Constructor Summary
Constructors Constructor Description ObservedFuzzinessCriterion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompute(ConformalClassification prediction, double trueLabel)Computes the OF/Observed Fuzziness 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 OF/Observed Fuzziness 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 Fuzziness criterion measure for this prediction. Small values are preferable.
-
-