Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Seyamalam/bun-scikit/llms.txt
Use this file to discover all available pages before exploring further.
Overview
MinMaxScaler transforms features by scaling each feature to a given range. The default range is [0, 1].Constructor
Desired range of transformed data as
[min, max]. Both values must be finite and min must be less than max.Properties
Per feature minimum seen in the training data.
Per feature maximum seen in the training data.
Per feature range (dataMax_ - dataMin_) in the training data.
Per feature scaling factor.
Per feature minimum offset.
Methods
fit
Training data matrix where each row is a sample and each column is a feature.
this - The fitted scaler instance.
transform
Data matrix to transform.
Matrix - Transformed data scaled to the specified range.
fitTransform
fit(X).transform(X).
Training data matrix to fit and transform.
Matrix - Transformed data.
inverseTransform
Transformed data matrix to inverse transform.
Matrix - Original scale data.
Example
Notes
- Features with zero range (constant values) are not scaled
- The scaler must be fitted before calling
transform()orinverseTransform() - Input data must be finite (no NaN or Infinity values)
- Useful when features need to be in a specific bounded range