Package adams.data.weka.predictions
Class RoundErrorScaler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.weka.predictions.AbstractErrorScaler
-
- adams.data.weka.predictions.RoundErrorScaler
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
,weka.core.CapabilitiesHandler
public class RoundErrorScaler extends AbstractErrorScaler
Performs no scaling at all, just rounds the error to the next integer.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoundErrorScaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description weka.core.Capabilities
getCapabilities()
Returns the capabilities of this object.String
globalInfo()
Returns a string describing the object.ArrayList<Integer>
scale(ArrayList data)
Scales the errors.-
Methods inherited from class adams.data.weka.predictions.AbstractErrorScaler
compareTo, equals, forCommandLine, forName, getErrorScalers, shallowCopy, shallowCopy, toString
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getCapabilities
public weka.core.Capabilities getCapabilities()
Returns the capabilities of this object. Returns what types of classes the scaler can handle.- Specified by:
getCapabilities
in interfaceweka.core.CapabilitiesHandler
- Specified by:
getCapabilities
in classAbstractErrorScaler
- Returns:
- the capabilities of this object
- See Also:
Capabilities
-
scale
public ArrayList<Integer> scale(ArrayList data)
Scales the errors.- Specified by:
scale
in classAbstractErrorScaler
- Parameters:
data
- the data containing the errors to scale- Returns:
- the scaled errors
-
-