Package se.hb.jcp.cp.measures
Class OneCCriterion
- java.lang.Object
-
- se.hb.jcp.cp.measures.AbstractSignificanceBasedMeasure
-
- se.hb.jcp.cp.measures.OneCCriterion
-
- All Implemented Interfaces:
IMeasure,IPriorMeasure
public class OneCCriterion extends AbstractSignificanceBasedMeasure implements IPriorMeasure
The OneC is the fraction of predictions that only have one label in their label set.- Author:
- anders.gidenstam(at)hb.se
-
-
Constructor Summary
Constructors Constructor Description OneCCriterion(double significanceLevel)Creates an OneC measure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompute(ConformalClassification prediction)Computes the OneC 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 OneC criterion measure for this prediction.- Specified by:
computein interfaceIPriorMeasure- Parameters:
prediction- the prediction.- Returns:
- the OneC criterion measure for this prediction. Large values are preferable.
-
-