mulan.evaluation.measure
Class LabelBasedAveragePrecision
java.lang.Object
mulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.ConfidenceMeasureBase
mulan.evaluation.measure.LabelBasedAveragePrecision
- All Implemented Interfaces:
- Serializable, Measure
- Direct Known Subclasses:
- MeanAverageInterpolatedPrecision, MeanAveragePrecision
public abstract class LabelBasedAveragePrecision
- extends ConfidenceMeasureBase
- Version:
- 2010.12.04
- Author:
- Eleftherios Spyromitros-Xioufis
- See Also:
- Serialized Form
Method Summary |
void |
reset()
Resets the cumulated measure value, so the process of computation can be started
from beginning (e.g. for a new series of outputs from learning task). |
protected void |
updateConfidence(double[] confidences,
boolean[] truth)
Updates the measure for a new example |
numOfLabels
protected int numOfLabels
- the number of labels
confact
protected List<LabelBasedAveragePrecision.ConfidenceActual>[] confact
- collection that stores all predictions and ground truths
LabelBasedAveragePrecision
public LabelBasedAveragePrecision(int numOfLabels)
- Creates a new instance of this class
- Parameters:
numOfLabels
- the number of labels
updateConfidence
protected void updateConfidence(double[] confidences,
boolean[] truth)
- Description copied from class:
ConfidenceMeasureBase
- Updates the measure for a new example
- Specified by:
updateConfidence
in class ConfidenceMeasureBase
- Parameters:
confidences
- the confidences output by the learner for the exampletruth
- the ground truth of the example
reset
public void reset()
- Description copied from interface:
Measure
- Resets the cumulated measure value, so the process of computation can be started
from beginning (e.g. for a new series of outputs from learning task).