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

hashCode int
The hash code for this object.
no setterinherited
isFitted bool
no setter
max double
final
min double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fit(List<List<double>> data) → void
Calculates the min and max values per feature (column).
inverseTransform(List<List<double>> data) List<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<double>> data) List<List<double>>
Scales input data to the range min, max.

Operators

operator ==(Object other) bool
The equality operator.
inherited