public class NormalizerStandardize extends Object implements DataSetPreProcessor
| 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
|
INDArray |
getMean() |
INDArray |
getStd() |
void |
load(File mean,
File std)
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 |
revertPreProcess(DataSet toPreProcess) |
void |
save(File mean,
File std)
Save the current mean and std
|
void |
transform(DataSet toPreProcess)
Transform the given dataset
|
void |
transform(DataSetIterator toPreProcessIter)
Transform the dataset from given iterator
Need not set preprocessor on the iterator in this case
|
public void fit(DataSet dataSet)
dataset - public void fit(DataSetIterator iterator)
iterator - public void preProcess(DataSet toPreProcess)
DataSetPreProcessorpreProcess in interface DataSetPreProcessortoPreProcess - the data set to pre processpublic void transform(DataSet toPreProcess)
toPreProcess - public void transform(DataSetIterator toPreProcessIter)
toPreProcess - the dataset to transformpublic void revertPreProcess(DataSet toPreProcess)
public void revert(DataSet toPreProcess)
toPreProcess - the dataset to revert backpublic void revert(DataSetIterator toPreProcessIter)
public INDArray getMean()
public INDArray getStd()
public void load(File mean, File std) throws IOException
mean - the mean filestd - the std fileIOExceptionpublic void save(File mean, File std) throws IOException
mean - the meanstd - the stdIOExceptionCopyright © 2016. All Rights Reserved.