Class AutoScaler

  • 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 AutoScaler
    extends AbstractErrorScaler
    Applies the specified numeric scaler to the data in case of a numeric class attribute, otherwise just passes on the data.

    Valid options are:

    -scaler <adams.data.weka.predictions.AbstractErrorScaler [options]> (property: scaler)
        The scaler to use for numeric data.
        default: adams.data.weka.predictions.RelativeNumericErrorScaler
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • AutoScaler

        public AutoScaler()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • setScaler

        public void setScaler​(AbstractErrorScaler value)
        Sets the scaler to use for numeric data.
        Parameters:
        value - the scaler
      • getScaler

        public AbstractErrorScaler getScaler()
        Returns the scaler for numeric data.
        Returns:
        the scaler
      • scalerTipText

        public String scalerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • 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 interface weka.core.CapabilitiesHandler
        Specified by:
        getCapabilities in class AbstractErrorScaler
        Returns:
        the capabilities of this object
        See Also:
        Capabilities