Class NormalisationFilter

  • All Implemented Interfaces:
    Configurable, Serializable, CapabilitiesHandler, MOAObject, OptionHandler, ExampleStream, StreamFilter

    public class NormalisationFilter
    extends AbstractStreamFilter
    Filter for standardising and normalising instances in a stream.

    Normalisation is a scaling technique in which values are shifted and rescaled so that they end up ranging between 0 and 1. It is also known as Min-Max scaling.

    For further information about the scaling technique included in this filter, please view the following website: https://www.analyticsvidhya.com/blog/2020/04/feature-scaling-machine-learning-normalization-standardization/

    Version:
    03.2021
    Author:
    Yibin Sun (ys388@students.waikato.ac.nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • NormalisationFilter

        public NormalisationFilter()
    • Method Detail

      • restartImpl

        protected void restartImpl()
        Description copied from class: AbstractStreamFilter
        Restarts this filter. All instances that extends from AbstractStreamFilter must implement restartImpl. restart uses restartImpl in AbstractStreamFilter.
        Specified by:
        restartImpl in class AbstractStreamFilter
      • getHeader

        public InstancesHeader getHeader()
        Description copied from interface: ExampleStream
        Gets the header of this stream. This is useful to know attributes and classes. InstancesHeader is an extension of weka.Instances.
        Returns:
        the header of this stream
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent