public class MaximumFMeasure extends MaximumNumericalTwoClassMeasure
PositivePredictiveValueForFixedSensitivity
,
SensitivityForFixedSpecificity
ParameterSet.ParameterList
errorMessage, 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, getName
compute, compute, compute
getAllowedNumberOfClasses
findSplitIndex, findThreshold, getCollectionOfAllMeasures, getWeight, simpleWeights
clone, fromGalaxy, fromXML, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, reset, setParent, toGalaxy, toXML
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllowedNumberOfClasses
public 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 StringBuffer
NonParsableException
- if the MaximumFMeasure
could not be reconstructed out of
the StringBuffer
xml
protected String getMeasureName()
MaximumNumericalTwoClassMeasure
getMeasureName
in class MaximumNumericalTwoClassMeasure
protected String getSpecificName()
MaximumNumericalTwoClassMeasure
getSpecificName
in class MaximumNumericalTwoClassMeasure
protected double getMeasure(double tp, double fp, double fn, double tn)
MaximumNumericalTwoClassMeasure
getMeasure
in class MaximumNumericalTwoClassMeasure
tp
- true positivesfp
- false positivesfn
- false negativestn
- true negative