MinMaxScaler
DashAI.back.converters.scikit_learn.MinMaxScaler
Scale each feature to a fixed range, by default [0, 1].
For each feature column the transformation is::
x_scaled = (x - x_min) / (x_max - x_min) * (max - min) + min
where x_min and x_max are the per-feature minimum and maximum
observed during fitting, and min/max are the bounds of the
configured feature_range.
Unlike StandardScaler, this scaler is sensitive to outliers because
the range is anchored to the observed extremes. It is appropriate when
the downstream model requires bounded inputs (e.g. neural networks with
sigmoid activations, k-nearest neighbours, or image pixel values that
must lie in [0, 1]).
References
Parameters
- min_range : number, default=
0 - The minimum value of the range to scale the data to.
- max_range : number, default=
1 - The maximum value of the range to scale the data to.
- clip : boolean, default=
False - Set to True to clip the data to the feature range.