public final class MaxScaler extends AbstractScaler
Constructor and Description |
---|
MaxScaler(javax.visrec.ml.data.DataSet<MLDataItem> dataSet)
Creates a new instance of max normalizer initialized to max values in given data set.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.visrec.ml.data.DataSet<MLDataItem> dataSet)
Performs normalization on the given inputs.
|
void |
deNormalizeInputs(Tensor inputs) |
void |
deNormalizeOutputs(Tensor outputs)
De-normalize given output vector in-place.
|
Tensor |
getMaxInputs() |
Tensor |
getMaxOutputs() |
void |
normalizeInput(Tensor input) |
void |
scaleInput(Tensor input)
Normalize input of deployed model
|
void |
setMaxInputs(Tensor maxInputs) |
void |
setMaxOutputs(Tensor maxOutputs) |
public MaxScaler(javax.visrec.ml.data.DataSet<MLDataItem> dataSet)
dataSet
- public void apply(javax.visrec.ml.data.DataSet<MLDataItem> dataSet)
dataSet
- data set to normalizepublic void scaleInput(Tensor input)
AbstractScaler
scaleInput
in class AbstractScaler
public Tensor getMaxInputs()
public void setMaxInputs(Tensor maxInputs)
public Tensor getMaxOutputs()
public void setMaxOutputs(Tensor maxOutputs)
public void deNormalizeOutputs(Tensor outputs)
outputs
- public void deNormalizeInputs(Tensor inputs)
public void normalizeInput(Tensor input)
Copyright © 2022. All rights reserved.