mulan.evaluation.measure
Class BipartitionMeasureBase

java.lang.Object
  extended by mulan.evaluation.measure.MeasureBase
      extended by mulan.evaluation.measure.BipartitionMeasureBase
All Implemented Interfaces:
Serializable, Measure
Direct Known Subclasses:
ExampleBasedBipartitionMeasureBase, LabelBasedBipartitionMeasureBase

public abstract class BipartitionMeasureBase
extends MeasureBase

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

Constructor Summary
BipartitionMeasureBase()
           
 
Method Summary
protected abstract  void updateBipartition(boolean[] bipartition, boolean[] truth)
          Updates the measure based on an 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

BipartitionMeasureBase

public BipartitionMeasureBase()
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

updateBipartition

protected abstract void updateBipartition(boolean[] bipartition,
                                          boolean[] truth)
Updates the measure based on an example

Parameters:
bipartition - the predicted bipartition
truth - the ground truth