mulan.evaluation.measure
Class LabelBasedSpecificity

java.lang.Object
  extended by mulan.evaluation.measure.MeasureBase
      extended by mulan.evaluation.measure.BipartitionMeasureBase
          extended by mulan.evaluation.measure.LabelBasedBipartitionMeasureBase
              extended by 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

Field Summary
 
Fields inherited from class mulan.evaluation.measure.LabelBasedBipartitionMeasureBase
falseNegatives, falsePositives, numOfLabels, trueNegatives, truePositives
 
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.
 
Methods inherited from class mulan.evaluation.measure.LabelBasedBipartitionMeasureBase
reset, updateBipartition
 
Methods inherited from class mulan.evaluation.measure.BipartitionMeasureBase
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
 
Methods inherited from interface mulan.evaluation.measure.Measure
getName, getValue
 

Constructor Detail

LabelBasedSpecificity

public LabelBasedSpecificity(int numOfLabels)
Constructs a new object with given number of labels

Parameters:
numOfLabels - the number of labels
Method Detail

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