com.rapidminer.operator.performance
Class LenientRelativeError

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.tools.math.Averagable
              extended by com.rapidminer.operator.performance.PerformanceCriterion
                  extended by com.rapidminer.operator.performance.MeasuredPerformance
                      extended by com.rapidminer.operator.performance.SimpleCriterion
                          extended by com.rapidminer.operator.performance.LenientRelativeError
All Implemented Interfaces:
IOObject, ResultObject, Readable, Reportable, LoggingHandler, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PerformanceCriterion>

public class LenientRelativeError
extends SimpleCriterion

The average relative error in a lenient way of calculation: Sum(|label-predicted|/max(|label|, |predicted|))/#examples. The relative error of label 0 and prediction 0 is defined as 0.

Author:
Ingo Mierswa
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject
AbstractIOObject.InputStreamProvider
 
Constructor Summary
LenientRelativeError()
           
LenientRelativeError(LenientRelativeError sc)
           
 
Method Summary
 double countExample(double label, double predictedLabel)
          Subclasses must count the example and return the value to sum up.
 boolean formatPercent()
          Indicates whether or not percentage format should be used in the Averagable.toString() method.
 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.operator.performance.SimpleCriterion
buildSingleAverage, countExample, countExampleWithWeight, getExampleCount, getFitness, getMaxFitness, getMikroAverage, getMikroVariance, startCounting, transform
 
Methods inherited from class com.rapidminer.operator.performance.MeasuredPerformance
startCounting
 
Methods inherited from class com.rapidminer.operator.performance.PerformanceCriterion
compareTo
 
Methods inherited from class com.rapidminer.tools.math.Averagable
buildAverage, clone, cloneAveragable, getAverage, getAverageCount, getExtension, getFileDescription, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroStandardDeviation, getStandardDeviation, getVariance, isInTargetEncoding, setAverageCount, toString
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getAnnotations, getResultIcon, log, log, logError, logNote, logWarning, toHTML, toResultString
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.IOObject
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, setLoggingHandler, setSource, write
 

Constructor Detail

LenientRelativeError

public LenientRelativeError()

LenientRelativeError

public LenientRelativeError(LenientRelativeError sc)
Method Detail

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

formatPercent

public boolean formatPercent()
Indicates whether or not percentage format should be used in the Averagable.toString() method. The default implementation returns false.

Overrides:
formatPercent in class Averagable

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