public class NormalizerStandardize extends Object implements DataNormalization
Constructor and Description |
---|
NormalizerStandardize() |
Modifier and Type | Method and Description |
---|---|
void |
fit(DataSet dataSet)
Fit the given model with dataset
to calculate mean and std dev with
|
void |
fit(DataSetIterator iterator)
Fit the given model with a given iterator
to calculate mean and std dev with
|
void |
fitLabel(boolean fitLabels)
Flag to specify if the labels/outputs in the dataset should be also normalized
default value is false
|
INDArray |
getLabelMean() |
INDArray |
getLabelStd() |
INDArray |
getMean() |
INDArray |
getStd() |
void |
load(File... statistics)
Load the given mean and std
|
void |
preProcess(DataSet toPreProcess)
Pre process a dataset
|
void |
revert(DataSet toPreProcess)
Revert the data to what it was before transform
|
void |
revert(DataSetIterator toPreProcessIter) |
void |
save(File... statistics)
Save the current mean and std
|
void |
transform(DataSet toPreProcess)
Transform the given dataset
|
void |
transform(INDArray theFeatures)
Transform the given INDArray
|
void |
transform(INDArray theArray,
boolean isFeatures) |
public void fitLabel(boolean fitLabels)
fitLabels
- public void fit(DataSet dataSet)
fit
in interface DataNormalization
dataSet
- public void fit(DataSetIterator iterator)
fit
in interface DataNormalization
iterator
- public void preProcess(DataSet toPreProcess)
DataSetPreProcessor
preProcess
in interface DataSetPreProcessor
preProcess
in interface DataNormalization
toPreProcess
- the data set to pre processpublic void transform(DataSet toPreProcess)
transform
in interface DataNormalization
toPreProcess
- public void transform(INDArray theFeatures)
theFeatures
- public void transform(INDArray theArray, boolean isFeatures)
public void revert(DataSet toPreProcess)
toPreProcess
- the dataset to revert backpublic void revert(DataSetIterator toPreProcessIter)
public INDArray getMean()
public INDArray getLabelMean()
public INDArray getStd()
public INDArray getLabelStd()
public void load(File... statistics) throws IOException
load
in interface DataNormalization
statistics
- the statistics to laodIOException
public void save(File... statistics) throws IOException
save
in interface DataNormalization
statistics
- the statistics to saveIOException
Copyright © 2016. All Rights Reserved.