Class ImageMultiPreProcessingScaler

    • Constructor Detail

      • ImageMultiPreProcessingScaler

        public ImageMultiPreProcessingScaler​(int... featureIndices)
      • ImageMultiPreProcessingScaler

        public ImageMultiPreProcessingScaler​(double a,
                                             double b,
                                             int[] featureIndices)
      • ImageMultiPreProcessingScaler

        public ImageMultiPreProcessingScaler​(double a,
                                             double b,
                                             int maxBits,
                                             int[] featureIndices)
        Preprocessor can take a range as minRange and maxRange
        Parameters:
        a - , default = 0
        b - , default = 1
        maxBits - in the image, default = 8
        featureIndices - Indices of feature arrays to process. If only one feature array is present, this should always be 0
    • Method Detail

      • revertFeatures

        public void revertFeatures​(INDArray[] features,
                                   INDArray[] featuresMask)
        Description copied from interface: MultiDataNormalization
        Undo (revert) the normalization applied by this DataNormalization instance to the specified features array
        Specified by:
        revertFeatures in interface MultiDataNormalization
        Parameters:
        features - Features to revert the normalization on
      • revertFeatures

        public void revertFeatures​(INDArray[] features)
        Description copied from interface: MultiDataNormalization
        Undo (revert) the normalization applied by this DataNormalization instance to the specified features array
        Specified by:
        revertFeatures in interface MultiDataNormalization
        Parameters:
        features - Features to revert the normalization on
      • revertLabels

        public void revertLabels​(INDArray[] labels,
                                 INDArray[] labelsMask)
        Description copied from interface: MultiDataNormalization
        Undo (revert) the normalization applied by this DataNormalization instance to the specified labels array. If labels normalization is disabled (i.e., #isFitLabel() == false) then this is a no-op. Can also be used to undo normalization for network output arrays, in the case of regression.
        Specified by:
        revertLabels in interface MultiDataNormalization
        Parameters:
        labels - Labels array to revert the normalization on
        labelsMask - Labels mask array (may be null)
      • revertLabels

        public void revertLabels​(INDArray[] labels)
        Description copied from interface: MultiDataNormalization
        Undo (revert) the normalization applied by this DataNormalization instance to the specified labels array. If labels normalization is disabled (i.e., #isFitLabel() == false) then this is a no-op. Can also be used to undo normalization for network output arrays, in the case of regression.
        Specified by:
        revertLabels in interface MultiDataNormalization
        Parameters:
        labels - Labels array to revert the normalization on
      • fit

        public void fit​(MultiDataSet dataSet)
        Description copied from interface: Normalizer
        Fit a dataset (only compute based on the statistics from this dataset)
        Specified by:
        fit in interface Normalizer<MultiDataSet>
        Parameters:
        dataSet - the dataset to compute on
      • revert

        public void revert​(MultiDataSet toRevert)
        Description copied from interface: Normalizer
        Undo (revert) the normalization applied by this DataNormalization instance (arrays are modified in-place)
        Specified by:
        revert in interface Normalizer<MultiDataSet>
        Parameters:
        toRevert - DataSet to revert the normalization on