com.rapidminer.operator.performance
Class SimpleClassificationError
java.lang.Object
com.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.tools.math.Averagable
com.rapidminer.operator.performance.PerformanceCriterion
com.rapidminer.operator.performance.MeasuredPerformance
com.rapidminer.operator.performance.SimpleCriterion
com.rapidminer.operator.performance.SimpleClassificationError
- All Implemented Interfaces:
- IOObject, ResultObject, Saveable, Readable, Reportable, LoggingHandler, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PerformanceCriterion>
public class SimpleClassificationError
- extends SimpleCriterion
This class calculates the classification error without determining the complete
contingency table. This criterion should be used if several different
accuracy measurements are averaged. The usual classification error criterion cannot be
used in cases where the number of classes differ.
- Author:
- Michael Wurst, Ingo Mierswa
- See Also:
- Serialized Form
|
Method Summary |
double |
countExample(double label,
double predictedLabel)
Subclasses must count the example and return the value to sum up. |
java.lang.String |
getDescription()
Returns a description of the performance criterion. |
java.lang.String |
getName()
Returns the name of this averagable. |
| Methods inherited from class com.rapidminer.tools.math.Averagable |
buildAverage, clone, cloneAveragable, formatPercent, getAverage, getAverageCount, getExtension, getFileDescription, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroStandardDeviation, getStandardDeviation, getVariance, getVisualizationComponent, setAverageCount, toString |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
addAction, getActions, getResultIcon, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleClassificationError
public SimpleClassificationError()
SimpleClassificationError
public SimpleClassificationError(SimpleClassificationError sc)
countExample
public double countExample(double label,
double predictedLabel)
- Description copied from class:
SimpleCriterion
- Subclasses must count the example and return the value to sum up.
- Specified by:
countExample in class SimpleCriterion
getName
public java.lang.String getName()
- Description copied from class:
Averagable
- Returns the name of this averagable. The returned string should only contain
lowercase letters and underscore (RapidMiner parameter format) since the names
will be automatically used for GUI purposes.
- Specified by:
getName in interface ResultObject- Specified by:
getName in class Averagable
getDescription
public java.lang.String getDescription()
- Description copied from class:
PerformanceCriterion
- Returns a description of the performance criterion. This description is
used for GUI purposes and automatic parameter type creation for the
PerformanceEvaluator operator.
- Specified by:
getDescription in class PerformanceCriterion
Copyright © 2001-2009 by Rapid-I