Documentation of 'org.encog.ml.data.versatile.normalizers.strategies.BasicNormalizationStrategy' Java class
BasicNormalizationStrategy
org.encog.ml.data.versatile.normalizers.strategies

Class BasicNormalizationStrategy

  • All Implemented Interfaces:
    java.io.Serializable, NormalizationStrategy


    public class BasicNormalizationStrategy
    extends java.lang.Object
    implements NormalizationStrategy
    Provides a basic normalization strategy that will work with most models built into Encog. This is often used as a starting point for building more customized models, as this normalizer works mainly by using maps to define which normalizer to use for what data type.
    See Also:
    Serialized Form
    • Constructor Detail

      • BasicNormalizationStrategy

        public BasicNormalizationStrategy(double inputLow,
                                          double inputHigh,
                                          double outputLow,
                                          double outputHigh)
        Construct the basic normalization strategy.
        Parameters:
        inputLow - The desired low to normalize input into.
        inputHigh - The desired high to normalize input into.
        outputLow - The desired low to normalize output into.
        outputHigh - The desired high to normalize output into.
      • BasicNormalizationStrategy

        public BasicNormalizationStrategy()
        Default constructor.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • assignInputNormalizer

        public void assignInputNormalizer(ColumnType colType,
                                          Normalizer norm)
        Assign a normalizer to the specified column type for output.
        Parameters:
        colType - The column type.
        norm - The normalizer.
      • assignOutputNormalizer

        public void assignOutputNormalizer(ColumnType colType,
                                           Normalizer norm)
        Assign a normalizer to the specified column type for output.
        Parameters:
        colType - The column type.
        norm - The normalizer.
      • normalizedSize

        public int normalizedSize(ColumnDefinition colDef,
                                  boolean isInput)
        Calculate how many elements a column will normalize into.
        Specified by:
        normalizedSize in interface NormalizationStrategy
        Parameters:
        colDef - The column definition.
        isInput - True, if this is an input column.
        Returns:
        The number of elements needed to normalize this column.
      • normalizeColumn

        public int normalizeColumn(ColumnDefinition colDef,
                                   boolean isInput,
                                   java.lang.String value,
                                   double[] outputData,
                                   int outputColumn)
        Normalize a column, with a string input.
        Specified by:
        normalizeColumn in interface NormalizationStrategy
        Parameters:
        colDef - The column definition.
        isInput - True, if this is an input column.
        value - The value to normalize.
        outputData - The output data.
        outputColumn - The element to begin outputing to.
        Returns:
        The new output element, advanced by the correct amount.
      • normalizeColumn

        public int normalizeColumn(ColumnDefinition colDef,
                                   boolean isInput,
                                   double value,
                                   double[] outputData,
                                   int outputColumn)
        Normalize a column, with a double value.
        Specified by:
        normalizeColumn in interface NormalizationStrategy
        Parameters:
        colDef - The column definition.
        isInput - True, if this is an input column.
        value - The value to normalize.
        outputData - The output data.
        outputColumn - The element to begin outputing to.
        Returns:
        The new output element, advanced by the correct amount.
      • getInputNormalizers

        public java.util.Map<ColumnType,Normalizer> getInputNormalizers()
        Returns:
        the inputNormalizers
      • getOutputNormalizers

        public java.util.Map<ColumnType,Normalizer> getOutputNormalizers()
        Returns:
        the outputNormalizers
      • denormalizeColumn

        public java.lang.String denormalizeColumn(ColumnDefinition colDef,
                                                  boolean isInput,
                                                  MLData data,
                                                  int dataColumn)
        Normalize a column, with a double input.
        Specified by:
        denormalizeColumn in interface NormalizationStrategy
        Parameters:
        colDef - The column definition.
        isInput - True, if this is an input column.
        data - The output data.
        dataColumn - The element to begin outputing to.
        Returns:
        The new output element, advanced by the correct amount.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.