mulan.evaluation.measure
Class GeometricMeanAverageInterpolatedPrecision

java.lang.Object
  extended by mulan.evaluation.measure.MeasureBase
      extended by mulan.evaluation.measure.ConfidenceMeasureBase
          extended by mulan.evaluation.measure.LabelBasedAveragePrecision
              extended by mulan.evaluation.measure.MeanAverageInterpolatedPrecision
                  extended by mulan.evaluation.measure.GeometricMeanAverageInterpolatedPrecision
All Implemented Interfaces:
Serializable, MacroAverageMeasure, Measure

public class GeometricMeanAverageInterpolatedPrecision
extends MeanAverageInterpolatedPrecision

Implementation of GMAiP (Geometric Mean Average Interpolated Precision)

Version:
2012.05.24
Author:
Fragkiskos Chatziasimidis, John Panagos, Eleftherios Spyromitros-Xioufis
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class mulan.evaluation.measure.LabelBasedAveragePrecision
LabelBasedAveragePrecision.ConfidenceActual
 
Field Summary
 
Fields inherited from class mulan.evaluation.measure.LabelBasedAveragePrecision
confact, numOfLabels
 
Constructor Summary
GeometricMeanAverageInterpolatedPrecision(int numOfLabels, int recallLevels)
          Creates a new object
 
Method Summary
 String getName()
          Gets the name of a measure.
 double getValue()
          Gets the value of a measure.
 
Methods inherited from class mulan.evaluation.measure.MeanAverageInterpolatedPrecision
getIdealValue, getValue
 
Methods inherited from class mulan.evaluation.measure.LabelBasedAveragePrecision
reset, updateConfidence
 
Methods inherited from class mulan.evaluation.measure.ConfidenceMeasureBase
updateInternal
 
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
 

Constructor Detail

GeometricMeanAverageInterpolatedPrecision

public GeometricMeanAverageInterpolatedPrecision(int numOfLabels,
                                                 int recallLevels)
Creates a new object

Parameters:
numOfLabels - the number of labels
recallLevels - the number of recall levels
Method Detail

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 MeanAverageInterpolatedPrecision
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
Overrides:
getValue in class MeanAverageInterpolatedPrecision
Returns:
the average measure value computed so far