mulan.evaluation.measure
Class MacroAUC
java.lang.Object
mulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.ConfidenceMeasureBase
mulan.evaluation.measure.LabelBasedAUC
mulan.evaluation.measure.MacroAUC
- All Implemented Interfaces:
- Serializable, MacroAverageMeasure, Measure
public class MacroAUC
- extends LabelBasedAUC
- implements MacroAverageMeasure
Implementation of the macro-averaged AUC measure.
- Version:
- 2010.12.10
- Author:
- Grigorios Tsoumakas
- See Also:
- Serialized Form
Constructor Summary |
MacroAUC(int numOfLabels)
Creates a new instance of this class |
Method Summary |
String |
getName()
Gets the name of a measure. |
double |
getValue()
Gets the value of a measure. |
double |
getValue(int labelIndex)
Returns the AUC for a particular label |
MacroAUC
public MacroAUC(int numOfLabels)
- Creates a new instance of this class
- Parameters:
numOfLabels
- the number of labels
getName
public String getName()
- Description copied from interface:
Measure
- Gets the name of a measure.
- Specified by:
getName
in interface Measure
- Returns:
- the name of a measure.
getValue
public double getValue()
- Description copied from interface:
Measure
- Gets the value of a measure. The measure is incrementally cumulated for learner's
prediction by each
Measure.update(MultiLabelOutput, boolean[])
call. The value
returned by the method, returns sum of all update calls divided by the number
of calls (average of all measures for all predictions).
- Specified by:
getValue
in interface Measure
- Returns:
- the average measure value computed so far
getValue
public double getValue(int labelIndex)
- Returns the AUC for a particular label
- Specified by:
getValue
in interface MacroAverageMeasure
- Parameters:
labelIndex
- the index of the label
- Returns:
- the AUC for that label