mulan.evaluation.measure
Class GeometricMeanAveragePrecision
java.lang.Object
mulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.ConfidenceMeasureBase
mulan.evaluation.measure.LabelBasedAveragePrecision
mulan.evaluation.measure.MeanAveragePrecision
mulan.evaluation.measure.GeometricMeanAveragePrecision
- All Implemented Interfaces:
- Serializable, MacroAverageMeasure, Measure
public class GeometricMeanAveragePrecision
- extends MeanAveragePrecision
Implementation of GMAP (Geometric Mean Average Precision)
- Version:
- 2010.12.10
- Author:
- Eleftherios Spyromitros-Xioufis
- See Also:
- Serialized Form
GeometricMeanAveragePrecision
public GeometricMeanAveragePrecision(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
- Overrides:
getName
in class MeanAveragePrecision
- Returns:
- the name of a measure.
getValue
public double getValue()
- Description copied from class:
MeanAveragePrecision
- Calculates map using multiple calls to
MeanAveragePrecision.getValue(int)
. If a label has 0 relevant examples, then it is omitted from the average.
- Specified by:
getValue
in interface Measure
- Overrides:
getValue
in class MeanAveragePrecision
- Returns:
- the average measure value computed so far
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.
- Specified by:
getIdealValue
in interface Measure
- Overrides:
getIdealValue
in class MeanAveragePrecision
- Returns:
- the ideal value