mulan.evaluation.measure
Class SubsetAccuracy
java.lang.Object
mulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.BipartitionMeasureBase
mulan.evaluation.measure.ExampleBasedBipartitionMeasureBase
mulan.evaluation.measure.SubsetAccuracy
- All Implemented Interfaces:
- Serializable, Measure
public class SubsetAccuracy
- extends ExampleBasedBipartitionMeasureBase
Implementation of the subset accuracy measure. This measure is the opposite
of the zero-one loss for multi-label classification.
- Version:
- 2010.11.05
- Author:
- Grigorios Tsoumakas
- See Also:
- Serialized Form
Method Summary |
double |
getIdealValue()
Gets an 'ideal' value of a measure. |
String |
getName()
Gets the name of a measure. |
protected void |
updateBipartition(boolean[] bipartition,
boolean[] truth)
Updates the measure based on an example |
SubsetAccuracy
public SubsetAccuracy()
getName
public String getName()
- Description copied from interface:
Measure
- Gets the name of a measure.
- Returns:
- the name of a measure.
getIdealValue
public double getIdealValue()
- Description copied from interface:
Measure
- Gets an 'ideal' value of a measure. The 'ideal' means, that the value
represents the best achievable performance of a learner for an prediction of
a multi-label task and associated true labels.
- Returns:
- the ideal value
updateBipartition
protected void updateBipartition(boolean[] bipartition,
boolean[] truth)
- Description copied from class:
BipartitionMeasureBase
- Updates the measure based on an example
- Specified by:
updateBipartition
in class BipartitionMeasureBase
- Parameters:
bipartition
- the predicted bipartitiontruth
- the ground truth