Class StandardizeStrategy
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.StandardizeStrategy
-
- All Implemented Interfaces:
Serializable
,NormalizerStrategy<DistributionStats>
public class StandardizeStrategy extends Object implements NormalizerStrategy<DistributionStats>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StandardizeStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NormalizerStats.Builder
newStatsBuilder()
Create a newNormalizerStats.Builder
instance that can be used to fit new data and of the opType that belongs to the current NormalizerStrategy implementationvoid
preProcess(INDArray array, INDArray maskArray, DistributionStats stats)
Normalize a data arrayvoid
revert(INDArray array, INDArray maskArray, DistributionStats stats)
Denormalize a data array
-
-
-
Method Detail
-
preProcess
public void preProcess(INDArray array, INDArray maskArray, DistributionStats stats)
Normalize a data array- Specified by:
preProcess
in interfaceNormalizerStrategy<DistributionStats>
- Parameters:
array
- the data to normalizestats
- statistics of the data population
-
revert
public void revert(INDArray array, INDArray maskArray, DistributionStats stats)
Denormalize a data array- Specified by:
revert
in interfaceNormalizerStrategy<DistributionStats>
- Parameters:
array
- the data to denormalizestats
- statistics of the data population
-
newStatsBuilder
public NormalizerStats.Builder newStatsBuilder()
Create a newNormalizerStats.Builder
instance that can be used to fit new data and of the opType that belongs to the current NormalizerStrategy implementation- Specified by:
newStatsBuilder
in interfaceNormalizerStrategy<DistributionStats>
- Returns:
- the new builder
-
-