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 INDArraygetLabelMean()INDArraygetLabelStd()INDArraygetMean()INDArraygetStd()NormalizerTypegetType()Get the enum opType of this normalizervoidload(File... files)Load the means and standard deviations from the file systemprotected NormalizerStats.BuildernewBuilder()voidsave(File... files)Deprecated.useNormalizerSerializerinsteadvoidsetLabelStats(@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.useNormalizerSerializerinsteadSave 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:
newBuilderin classAbstractDataSetNormalizer<DistributionStats>
-
getType
public NormalizerType getType()
Description copied from interface:NormalizerGet the enum opType of this normalizer- Returns:
- the opType
- See Also:
NormalizerSerializerStrategy.getSupportedType()
-
-