public class MaximumFMeasure extends MaximumNumericalTwoClassMeasure
.
The F-measure is defined as
, where PPV denotes the
positive predictive value and Sn denotes sensitivity. For
it is equal to the traditional F1-measure.PositivePredictiveValueForFixedSensitivity,
SensitivityForFixedSpecificityParameterSet.ParameterListerrorMessage, parameters, parent| Constructor and Description |
|---|
MaximumFMeasure()
Constructs a new instance of the performance measure
MaximumFMeasure with empty parameters. |
MaximumFMeasure(double beta)
Constructs a new instance of the performance measure
MaximumFMeasure with given beta. |
MaximumFMeasure(StringBuffer xml)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getMeasure(double tp,
double fp,
double fn,
double tn)
This measure compute the measure for a given confusion matrix
|
protected String |
getMeasureName()
This method returns a short name of the measure without any parameters.
|
protected String |
getSpecificName()
This method returns a specific name of the measure including any parameters.
|
compute, getNamecompute, compute, computegetAllowedNumberOfClassesfindSplitIndex, findThreshold, getCollectionOfAllMeasures, getWeight, simpleWeightsclone, fromGalaxy, fromXML, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, reset, setParent, toGalaxy, toXMLequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllowedNumberOfClassespublic MaximumFMeasure()
MaximumFMeasure with empty parameters.public MaximumFMeasure(double beta)
throws Exception
MaximumFMeasure with given beta.beta - the beta for which the maximum F-measure should be computedException - if the internal parameters can not be created or the value can not be setpublic MaximumFMeasure(StringBuffer xml) throws NonParsableException
Storable.
Constructs a MaximumFMeasure out of an XML representation.xml - the XML representation as StringBufferNonParsableException - if the MaximumFMeasure could not be reconstructed out of
the StringBuffer xmlprotected String getMeasureName()
MaximumNumericalTwoClassMeasuregetMeasureName in class MaximumNumericalTwoClassMeasureprotected String getSpecificName()
MaximumNumericalTwoClassMeasuregetSpecificName in class MaximumNumericalTwoClassMeasureprotected double getMeasure(double tp,
double fp,
double fn,
double tn)
MaximumNumericalTwoClassMeasuregetMeasure in class MaximumNumericalTwoClassMeasuretp - true positivesfp - false positivesfn - false negativestn - true negative