de.jstacs.classifiers.performanceMeasures
Class NumericalPerformanceMeasureParameterSet
java.lang.Object
de.jstacs.parameters.ParameterSet
de.jstacs.parameters.ExpandableParameterSet
de.jstacs.classifiers.performanceMeasures.AbstractPerformanceMeasureParameterSet<NumericalPerformanceMeasure>
de.jstacs.classifiers.performanceMeasures.NumericalPerformanceMeasureParameterSet
- All Implemented Interfaces:
- GalaxyConvertible, Storable, Cloneable
public class NumericalPerformanceMeasureParameterSet
- extends AbstractPerformanceMeasureParameterSet<NumericalPerformanceMeasure>
This class implements a container for NumericalPerformanceMeasures that can be used, for instance, in an repeated assessment,
(cf. ClassifierAssessment).
- Author:
- Jens Keilwagen
| Methods inherited from class de.jstacs.parameters.ParameterSet |
getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, reset, setParent |
NumericalPerformanceMeasureParameterSet
public NumericalPerformanceMeasureParameterSet(StringBuffer xml)
throws NonParsableException
- The standard constructor for the interface
Storable.
Constructs a NumericalPerformanceMeasureParameterSet out of an XML representation.
- Parameters:
xml - the XML representation as StringBuffer
- Throws:
NonParsableException - if the NumericalPerformanceMeasureParameterSet could not be reconstructed out of
the StringBuffer xml
NumericalPerformanceMeasureParameterSet
public NumericalPerformanceMeasureParameterSet(int numClasses)
throws Exception
- Constructs a new
NumericalPerformanceMeasureParameterSet that can be used for classifiers that
handle the given number of classes. Automatically includes all AbstractPerformanceMeasures that can be
computed for the given number of classes.
- Parameters:
numClasses - the number of classes
- Throws:
Exception - if something went wrong- See Also:
AbstractClassifier.getNumberOfClasses()
NumericalPerformanceMeasureParameterSet
public NumericalPerformanceMeasureParameterSet(NumericalPerformanceMeasure... measures)
throws Exception
- Constructs a new
NumericalPerformanceMeasureParameterSet with the given performance measures.
The number of classes this NumericalPerformanceMeasureParameterSet can be used for is determined from
the given NumericalPerformanceMeasures. If no measure is given, a new
NumericalPerformanceMeasureParameterSet for binary classifiers is created.
- Parameters:
measures - the NumericalPerformanceMeasure that shall be used
- Throws:
Exception - if something went wrong