Class NormalizerStandardize
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.AbstractNormalizer
-
- org.nd4j.linalg.dataset.api.preprocessor.AbstractDataSetNormalizer<DistributionStats>
-
- org.nd4j.linalg.dataset.api.preprocessor.NormalizerStandardize
-
- All Implemented Interfaces:
Serializable
,DataSetPreProcessor
,DataNormalization
,Normalizer<DataSet>
public class NormalizerStandardize extends AbstractDataSetNormalizer<DistributionStats>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.nd4j.linalg.dataset.api.preprocessor.AbstractDataSetNormalizer
strategy
-
-
Constructor Summary
Constructors Constructor Description NormalizerStandardize()
NormalizerStandardize(@NonNull INDArray featureMean, @NonNull INDArray featureStd)
NormalizerStandardize(@NonNull INDArray featureMean, @NonNull INDArray featureStd, @NonNull INDArray labelMean, @NonNull INDArray labelStd)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description INDArray
getLabelMean()
INDArray
getLabelStd()
INDArray
getMean()
INDArray
getStd()
NormalizerType
getType()
Get the enum opType of this normalizervoid
load(File... files)
Load the means and standard deviations from the file systemprotected NormalizerStats.Builder
newBuilder()
void
save(File... files)
Deprecated.useNormalizerSerializer
insteadvoid
setLabelStats(@NonNull INDArray labelMean, @NonNull INDArray labelStd)
-
Methods inherited from class org.nd4j.linalg.dataset.api.preprocessor.AbstractDataSetNormalizer
fit, fit, fitLabel, getFeatureStats, getLabelStats, isFit, isFitLabel, preProcess, revert, revertFeatures, revertFeatures, revertLabels, revertLabels, transform, transform, transform, transformLabel, transformLabel
-
-
-
-
Constructor Detail
-
NormalizerStandardize
public NormalizerStandardize(@NonNull @NonNull INDArray featureMean, @NonNull @NonNull INDArray featureStd)
-
NormalizerStandardize
public NormalizerStandardize(@NonNull @NonNull INDArray featureMean, @NonNull @NonNull INDArray featureStd, @NonNull @NonNull INDArray labelMean, @NonNull @NonNull INDArray labelStd)
-
NormalizerStandardize
public NormalizerStandardize()
-
-
Method Detail
-
setLabelStats
public void setLabelStats(@NonNull @NonNull INDArray labelMean, @NonNull @NonNull INDArray labelStd)
-
getMean
public INDArray getMean()
-
getLabelMean
public INDArray getLabelMean()
-
getStd
public INDArray getStd()
-
getLabelStd
public INDArray getLabelStd()
-
load
public void load(File... files) throws IOException
Load the means and standard deviations from the file system- Parameters:
files
- the files to load from. Needs 4 files if normalizing labels, otherwise 2.- Throws:
IOException
-
save
public void save(File... files) throws IOException
Deprecated.useNormalizerSerializer
insteadSave the current means and standard deviations to the file system
- Parameters:
files
- the files to save to. Needs 4 files if normalizing labels, otherwise 2.- Throws:
IOException
-
newBuilder
protected NormalizerStats.Builder newBuilder()
- Specified by:
newBuilder
in classAbstractDataSetNormalizer<DistributionStats>
-
getType
public NormalizerType getType()
Description copied from interface:Normalizer
Get the enum opType of this normalizer- Returns:
- the opType
- See Also:
NormalizerSerializerStrategy.getSupportedType()
-
-