mulan.evaluation.measure
Class LabelBasedPrecision
java.lang.Object
mulan.evaluation.measure.MeasureBase
mulan.evaluation.measure.BipartitionMeasureBase
mulan.evaluation.measure.LabelBasedBipartitionMeasureBase
mulan.evaluation.measure.LabelBasedPrecision
- All Implemented Interfaces:
- Serializable, Measure
- Direct Known Subclasses:
- MacroPrecision, MicroPrecision
public abstract class LabelBasedPrecision
- extends LabelBasedBipartitionMeasureBase
Base implementation of the label-based macro/micro precision measures.
- Version:
- 2010.11.05
- Author:
- Grigorios Tsoumakas
- See Also:
- Serialized Form
Constructor Summary |
LabelBasedPrecision(int numOfLabels)
Constructs a new object with given number of labels |
Method Summary |
double |
getIdealValue()
Gets an 'ideal' value of a measure. |
LabelBasedPrecision
public LabelBasedPrecision(int numOfLabels)
- Constructs a new object with given number of labels
- Parameters:
numOfLabels
- the number of labels
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