mulan.evaluation.measure
Class MicroPrecision
java.lang.Object
mulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.BipartitionMeasureBase
mulan.evaluation.measure.LabelBasedBipartitionMeasureBase
mulan.evaluation.measure.LabelBasedPrecision
mulan.evaluation.measure.MicroPrecision
- All Implemented Interfaces:
- Serializable, Measure
public class MicroPrecision
- extends LabelBasedPrecision
Implementation of the micro-averaged precision measure.
- Version:
- 2010.11.05
- Author:
- Grigorios Tsoumakas
- See Also:
- Serialized Form
Constructor Summary |
MicroPrecision(int numOfLabels)
Constructs a new object with given number of labels |
Method Summary |
String |
getName()
Gets the name of a measure. |
double |
getValue()
Gets the value of a measure. |
MicroPrecision
public MicroPrecision(int numOfLabels)
- Constructs a new object with given number of labels
- Parameters:
numOfLabels
- the number of labels
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).
- Returns:
- the average measure value computed so far
getName
public String getName()
- Description copied from interface:
Measure
- Gets the name of a measure.
- Returns:
- the name of a measure.