Package se.hb.jcp.cp.measures
Class NumberCriterion
- java.lang.Object
-
- se.hb.jcp.cp.measures.AbstractSignificanceBasedMeasure
-
- se.hb.jcp.cp.measures.NumberCriterion
-
- All Implemented Interfaces:
IMeasure,IPriorMeasure
public class NumberCriterion extends AbstractSignificanceBasedMeasure implements IPriorMeasure
The N/Number/AvgC criterion is a prior efficiency measure based on the size of 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 NumberCriterion(double significanceLevel)Creates a N/Number criterion measure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompute(ConformalClassification prediction)Computes the N/Number criterion measure for this prediction.-
Methods inherited from class se.hb.jcp.cp.measures.AbstractSignificanceBasedMeasure
getName
-
-
-
-
Method Detail
-
compute
public double compute(ConformalClassification prediction)
Computes the N/Number criterion measure for this prediction.- Specified by:
computein interfaceIPriorMeasure- Parameters:
prediction- the prediction.- Returns:
- the Number criterion measure for this prediction. Small values are preferable.
-
-