public class StandardizeStrategy extends Object implements NormalizerStrategy<DistributionStats>
NormalizerStrategy
implementation that will standardize and de-standardize data arrays, based on statistics
of the means and standard deviations of the populationConstructor and Description |
---|
StandardizeStrategy() |
Modifier and Type | Method and Description |
---|---|
NormalizerStats.Builder |
newStatsBuilder()
Create a new
NormalizerStats.Builder instance that can be used to fit new data and of the opType that
belongs to the current NormalizerStrategy implementation |
void |
preProcess(INDArray array,
INDArray maskArray,
DistributionStats stats)
Normalize a data array
|
void |
revert(INDArray array,
INDArray maskArray,
DistributionStats stats)
Denormalize a data array
|
public void preProcess(INDArray array, INDArray maskArray, DistributionStats stats)
preProcess
in interface NormalizerStrategy<DistributionStats>
array
- the data to normalizestats
- statistics of the data populationpublic void revert(INDArray array, INDArray maskArray, DistributionStats stats)
revert
in interface NormalizerStrategy<DistributionStats>
array
- the data to denormalizestats
- statistics of the data populationpublic NormalizerStats.Builder newStatsBuilder()
NormalizerStats.Builder
instance that can be used to fit new data and of the opType that
belongs to the current NormalizerStrategy implementationnewStatsBuilder
in interface NormalizerStrategy<DistributionStats>
Copyright © 2020. All rights reserved.