Package deepnetts.data.norm
Class MinMaxScaler
java.lang.Object
deepnetts.data.norm.AbstractScaler
deepnetts.data.norm.MinMaxScaler
- All Implemented Interfaces:
Serializable
,javax.visrec.ml.data.preprocessing.Scaler<javax.visrec.ml.data.DataSet<MLDataItem>>
Performs Min Max normalization on the given data set.
- Author:
- Zoran Sevarac
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMinMaxScaler
(javax.visrec.ml.data.DataSet<MLDataItem> dataSet) Creates a new instance of max normalizer initialized to max values in given data set. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(javax.visrec.ml.data.DataSet<MLDataItem> dataSet) Performs normalization on the given inputs.void
scaleInput
(TensorBase input) Normalize input of deployed model
-
Constructor Details
-
MinMaxScaler
Creates a new instance of max normalizer initialized to max values in given data set.- Parameters:
dataSet
-
-
-
Method Details
-
apply
Performs normalization on the given inputs. x = (x-min) / (max-min)- Parameters:
dataSet
- data set to normalize
-
scaleInput
Description copied from class:AbstractScaler
Normalize input of deployed model- Specified by:
scaleInput
in classAbstractScaler
- Parameters:
input
-
-