MinMaxScaler class
MinMaxScaler rescales features to a defined range (default 0–1). Commonly used for normalization in machine learning preprocessing.
Constructors
- MinMaxScaler.new({double min = 0.0, double max = 1.0})
Properties
Methods
-
fit(
List< List< data) → voiddouble> > - Calculates the min and max values per feature (column).
-
inverseTransform(
List< List< data) → List<double> >List< double> > - Restores scaled data back to original values.
-
loadFromModel(
ScalerModel model) → void - Loads scaler state from a serialized model.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toModel(
) → ScalerModel - Converts the scaler to a serializable model object.
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
List< List< data) → List<double> >List< double> > -
Scales input data to the range
min, max
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited