public class NormalizerMinMaxScaler extends AbstractDataSetNormalizer<MinMaxStats>
strategy
Constructor and Description |
---|
NormalizerMinMaxScaler() |
NormalizerMinMaxScaler(double minRange,
double maxRange)
Preprocessor can take a range as minRange and maxRange
|
Modifier and Type | Method and Description |
---|---|
INDArray |
getLabelMax() |
INDArray |
getLabelMin() |
INDArray |
getMax() |
INDArray |
getMin() |
double |
getTargetMax() |
double |
getTargetMin() |
NormalizerType |
getType()
Get the enum opType of this normalizer
|
void |
load(File... statistics)
Load the given min and max
|
protected NormalizerStats.Builder |
newBuilder() |
void |
save(File... files)
Deprecated.
use
instead |
void |
setFeatureStats(INDArray featureMin,
INDArray featureMax) |
void |
setLabelStats(INDArray labelMin,
INDArray labelMax) |
fit, fit, fitLabel, getFeatureStats, getLabelStats, isFit, isFitLabel, preProcess, revert, revertFeatures, revertFeatures, revertLabels, revertLabels, transform, transform, transform, transformLabel, transformLabel
public NormalizerMinMaxScaler()
public NormalizerMinMaxScaler(double minRange, double maxRange)
minRange
- maxRange
- public void setFeatureStats(@NonNull INDArray featureMin, @NonNull INDArray featureMax)
public double getTargetMin()
public double getTargetMax()
public INDArray getMin()
public INDArray getMax()
public INDArray getLabelMin()
public INDArray getLabelMax()
public void load(File... statistics) throws IOException
statistics
- the statistics to loadIOException
public void save(File... files) throws IOException
instead
files
- the statistics to saveIOException
protected NormalizerStats.Builder newBuilder()
newBuilder
in class AbstractDataSetNormalizer<MinMaxStats>
public NormalizerType getType()
Normalizer
NormalizerSerializerStrategy.getSupportedType()
Copyright © 2018. All rights reserved.