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