public class PerformanceMeasureParameterSet extends AbstractPerformanceMeasureParameterSet<PerformanceMeasure>
AbstractPerformanceMeasure
s that can be used
in AbstractClassifier.evaluate(AbstractPerformanceMeasureParameterSet, boolean, de.jstacs.data.DataSet...)
.ParameterSet.ParameterList
commentTemplate, nameTemplate, template
errorMessage, parameters, parent
Constructor and Description |
---|
PerformanceMeasureParameterSet(int numClasses)
Constructs a new
PerformanceMeasureParameterSet that can be used for classifiers that
handle the given number of classes. |
PerformanceMeasureParameterSet(PerformanceMeasure... measures)
Constructs a new
PerformanceMeasureParameterSet with the given performance measures. |
PerformanceMeasureParameterSet(StringBuffer xml)
The standard constructor for the interface
Storable . |
createFilledParameters, createFilledParameters, getAllMeasures, getNumberOfClasses, removeMeasure, removeMeasures, removeMeasures, setMeasure
addParameterToSet, clone, fromGalaxy, fromXML, parameterRemovable, removeParameterFromSet, replaceContentWith, toGalaxy, toXML
getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, reset, setParent
public PerformanceMeasureParameterSet(StringBuffer xml) throws NonParsableException
Storable
.
Constructs a PerformanceMeasureParameterSet
out of an XML representation.xml
- the XML representation as StringBuffer
NonParsableException
- if the PerformanceMeasureParameterSet
could not be reconstructed out of
the StringBuffer
xml
public PerformanceMeasureParameterSet(int numClasses) throws Exception
PerformanceMeasureParameterSet
that can be used for classifiers that
handle the given number of classes.numClasses
- the number of classesException
- if something went wrongAbstractClassifier.getNumberOfClasses()
public PerformanceMeasureParameterSet(PerformanceMeasure... measures) throws Exception
PerformanceMeasureParameterSet
with the given performance measures.
The number of classes this PerformanceMeasureParameterSet
can be used for is determined from
the given AbstractPerformanceMeasure
s. If no measure is given, a new
PerformanceMeasureParameterSet
for binary classifiers is created.measures
- the AbstractPerformanceMeasure
that shall be usedException
- if something went wrong