public interface DataNormalization extends Normalizer<DataSet>, DataSetPreProcessor
Modifier and Type | Method and Description |
---|---|
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 |
preProcess(DataSet toPreProcess)
Pre process a dataset
|
void |
revertFeatures(INDArray features)
Undo (revert) the normalization applied by this DataNormalization instance to the specified features array
|
void |
revertFeatures(INDArray features,
INDArray featuresMask)
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 |
revertLabels(INDArray labels,
INDArray labelsMask)
Undo (revert) the normalization applied by this DataNormalization instance to the specified labels array.
|
void |
transform(INDArray features)
Transform the dataset
|
void |
transform(INDArray features,
INDArray featuresMask)
Transform the features, with an optional mask array
|
void |
transformLabel(INDArray labels)
Transform the labels.
|
void |
transformLabel(INDArray labels,
INDArray labelsMask)
Transform the labels.
|
fit, getType, revert, transform
void 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(INDArray features)
features
- the features to pre processvoid transform(INDArray features, INDArray featuresMask)
features
- the features to pre processfeaturesMask
- the mask array to pre processvoid transformLabel(INDArray labels)
isFitLabel()
== false, this is a no-opvoid transformLabel(INDArray labels, INDArray labelsMask)
isFitLabel()
== false, this is a no-opvoid revertFeatures(INDArray features)
features
- Features to revert the normalization onvoid revertFeatures(INDArray features, INDArray featuresMask)
features
- Features to revert the normalization onfeaturesMask
- void 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 revertLabels(INDArray labels, INDArray labelsMask)
#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 onlabelsMask
- Labels mask array (may be null)void fitLabel(boolean fitLabels)
boolean isFitLabel()
Copyright © 2020. All rights reserved.