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
StandardScaler transforms features to have zero mean and unit variance. This is a common requirement for many machine learning algorithms.Constructor
Properties
Mean value for each feature in the training set. Set during
fit().Standard deviation for each feature in the training set. Set during
fit().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 with zero mean and unit variance.
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 variance are scaled to 1 to avoid division by zero
- The scaler must be fitted before calling
transform()orinverseTransform() - Input data must be finite (no NaN or Infinity values)