Package se.hb.jcp.cp.measures
Class SumCriterion
- java.lang.Object
-
- se.hb.jcp.cp.measures.SumCriterion
-
- All Implemented Interfaces:
IMeasure,IPriorMeasure
public class SumCriterion extends java.lang.Object implements IPriorMeasure
The S/Sum criterion is a prior efficiency measure based on the sum of the p-values. 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 SumCriterion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompute(ConformalClassification prediction)Computes the Sum criterion measure for this prediction.java.lang.StringgetName()Get the name of this measure.
-
-
-
Method Detail
-
compute
public double compute(ConformalClassification prediction)
Computes the Sum criterion measure for this prediction.- Specified by:
computein interfaceIPriorMeasure- Parameters:
prediction- the prediction.- Returns:
- the Sum criterion measure for this prediction. Small values are preferable.
-
-