Package se.hb.jcp.cp.measures
Class ObservedMultipleCriterion
- java.lang.Object
-
- se.hb.jcp.cp.measures.AbstractSignificanceBasedMeasure
-
- se.hb.jcp.cp.measures.ObservedMultipleCriterion
-
- All Implemented Interfaces:
IMeasure,IObservedMeasure
public class ObservedMultipleCriterion extends AbstractSignificanceBasedMeasure implements IObservedMeasure
The OM/Observed Multiple criterion is an observed efficiency measure based on the number of false labels in the label set. 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 ObservedMultipleCriterion(double significanceLevel)Creates an OM/Observed Multiple criterion measure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompute(ConformalClassification prediction, double trueLabel)Computes the OM/Observed Multiple criterion measure for this prediction and true label.-
Methods inherited from class se.hb.jcp.cp.measures.AbstractSignificanceBasedMeasure
getName
-
-
-
-
Method Detail
-
compute
public double compute(ConformalClassification prediction, double trueLabel)
Computes the OM/Observed Multiple 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 Multiple criterion measure for this prediction. Small values are preferable.
-
-