mulan.evaluation.measure
Class ConfidenceMeasureBase

java.lang.Object
  extended by mulan.evaluation.measure.MeasureBase
      extended by mulan.evaluation.measure.ConfidenceMeasureBase
All Implemented Interfaces:
Serializable, Measure
Direct Known Subclasses:
LabelBasedAUC, LabelBasedAveragePrecision

public abstract class ConfidenceMeasureBase
extends MeasureBase

Version:
2010.12.04
Author:
Grigorios Tsoumakas
See Also:
Serialized Form

Constructor Summary
ConfidenceMeasureBase()
           
 
Method Summary
protected abstract  void updateConfidence(double[] confidences, boolean[] truth)
          Updates the measure for a new example
protected  void updateInternal(MultiLabelOutput prediction, boolean[] truth)
          Updates the measure based on an example
 
Methods inherited from class mulan.evaluation.measure.MeasureBase
makeCopy, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mulan.evaluation.measure.Measure
getIdealValue, getName, getValue, reset
 

Constructor Detail

ConfidenceMeasureBase

public ConfidenceMeasureBase()
Method Detail

updateInternal

protected void updateInternal(MultiLabelOutput prediction,
                              boolean[] truth)
Description copied from class: MeasureBase
Updates the measure based on an example

Specified by:
updateInternal in class MeasureBase
Parameters:
prediction - the output of the algorithm for the example
truth - the ground truth of the example

updateConfidence

protected abstract void updateConfidence(double[] confidences,
                                         boolean[] truth)
Updates the measure for a new example

Parameters:
confidences - the confidences output by the learner for the example
truth - the ground truth of the example