public interface DataNormalization extends DataSetPreProcessor
Modifier and Type | Method and Description |
---|---|
void |
fit(DataSet dataSet)
Fit a dataset (only compute
based on the statistics from this dataset0
|
void |
fit(DataSetIterator iterator)
Iterates over a dataset
accumulating statistics for normalization
|
void |
fitLabel(boolean fitLabels)
Flag to specify if the labels/outputs in the dataset should be also normalized.
|
boolean |
isFitLabel()
Whether normalization for the labels is also enabled.
|
void |
load(File... statistics)
Load the statistics
for the data normalizer
|
void |
preProcess(DataSet toPreProcess)
Pre process a dataset
|
void |
revert(DataSet toRevert)
Undo (revert) the normalization applied by this DataNormalization instance (arrays are modified in-place)
|
void |
revertFeatures(INDArray features)
Undo (revert) the normalization applied by this DataNormalization instance to the specified features array
|
void |
revertLabels(INDArray labels)
Undo (revert) the normalization applied by this DataNormalization instance to the specified labels array.
|
void |
save(File... statistics)
Save the accumulated statistics
|
void |
transform(DataSet toPreProcess)
Transform the dataset
|
void |
transform(INDArray features)
Transform the dataset
|
void |
transformLabel(INDArray labels)
Transform the labels.
|
void fit(DataSet dataSet)
dataSet
- the dataset to compute onvoid fit(DataSetIterator iterator)
iterator
- the iterator to use for
collecting statistics.void preProcess(DataSet toPreProcess)
DataSetPreProcessor
preProcess
in interface DataSetPreProcessor
toPreProcess
- the data set to pre processvoid transform(DataSet toPreProcess)
toPreProcess
- the dataset to re processvoid transform(INDArray features)
features
- the features to pre processvoid transformLabel(INDArray labels)
isFitLabel()
== false, this is a no-opvoid revert(DataSet toRevert)
toRevert
- DataSet to revert the normalization onvoid revertFeatures(INDArray features)
features
- Features to revert the normalization onvoid revertLabels(INDArray labels)
#isFitLabels()
== false) then this is a no-op.
Can also be used to undo normalization for network output arrays, in the case of regression.labels
- Labels array to revert the normalization onvoid fitLabel(boolean fitLabels)
boolean isFitLabel()
void load(File... statistics) throws IOException
statistics
- the files to persistIOException
void save(File... statistics) throws IOException
statistics
- the statistics to saveIOException
Copyright © 2016. All Rights Reserved.