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

Class OneOfNNormalizer

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


    public class OneOfNNormalizer
    extends java.lang.Object
    implements Normalizer
    Normalize to one-of-n for nominal values. For example, "one", "two", "three" becomes 1,0,0 and 0,1,0 and 0,0,1 etc. Assuming 0 and 1 were the min/max.
    See Also:
    Serialized Form
    • Constructor Detail

      • OneOfNNormalizer

        public OneOfNNormalizer(double theNormalizedLow,
                                double theNormalizedHigh)
        Construct the normalizer.
        Parameters:
        theNormalizedLow - The normalized low.
        theNormalizedHigh - The normalized high.
    • Method Detail

      • equals

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

        public int outputSize(ColumnDefinition colDef)
        Determine the normalized size of the specified column.
        Specified by:
        outputSize in interface Normalizer
        Parameters:
        colDef - The column to check.
        Returns:
        The size of the column normalized.
      • normalizeColumn

        public int normalizeColumn(ColumnDefinition colDef,
                                   java.lang.String value,
                                   double[] outputData,
                                   int outputColumn)
        Normalize a column from a string. The output will go to an array, starting at outputColumn.
        Specified by:
        normalizeColumn in interface Normalizer
        Parameters:
        colDef - The column that is being normalized.
        value - The value to normalize.
        outputData - The array to output to.
        outputColumn - The index to start at in outputData.
        Returns:
        The new index (in outputData) that we've moved to.
      • denormalizeColumn

        public java.lang.String denormalizeColumn(ColumnDefinition colDef,
                                                  MLData data,
                                                  int dataColumn)
        Denormalize a value.
        Specified by:
        denormalizeColumn in interface Normalizer
        Parameters:
        colDef - The column to denormalize.
        data - The data to denormalize.
        dataColumn - The starting location inside data.
        Returns:
        The denormalized value.
      • normalizeColumn

        public int normalizeColumn(ColumnDefinition colDef,
                                   double value,
                                   double[] outputData,
                                   int outputColumn)
        Normalize a column from a double. The output will go to an array, starting at outputColumn.
        Specified by:
        normalizeColumn in interface Normalizer
        Parameters:
        colDef - The column that is being normalized.
        value - The value to normalize.
        outputData - The array to output to.
        outputColumn - The index to start at in outputData.
        Returns:
        The new index (in outputData) that we've moved to.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.