Data Science with Python — Medium
Key points
- StandardScaler standardizes features to zero mean and unit variance
- Fitted on training data only to avoid data leakage
- Applied to both train and test sets
- Prevents differences in scale affecting model performance
Ready to go further?
Related questions
