# Scaling Features

Features measured in different units (pounds, years, a 0 or 1) pull unevenly on any model that measures distance or penalizes large weights, so standardizing rescales each one with the training data's mean and standard deviation, which StandardScaler learns with fit on the training part and applies with transform to both parts.

![Cheat sheet: Scaling Features](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/4bfd387a68f341cdaca08e6fdbb21ca6.webp)

- Category: Machine Learning
- Level: Journeyman
- Tags: ai, Feature (ai), Feature Scaling, python, Standardization, StandardScaler
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-scaling-features-cheat-sheet
