📈Feature Scaling
Also known as Normalization (Machine Learning), Standardization (Machine Learning), Min-Max Scaling
Puts number columns on one range. Then big numbers do not drown out small ones.
Think of it like
It is like putting grams and tons in one unit. Then you can compare them.
Example
Emma's model reads age and income. After scaling, both run from 0 to 1. Her k-nearest neighbors model stops ignoring age.
Why it matters
Models that measure distance or use gradient descent learn badly without it. Tree models do not need it.
Definition
Common mistake
Key takeaways
- 1Same range. Columns become easy to compare.
- 2Two common ways. Squeeze to 0 to 1, or center on 0.
- 3Fit on training. Then apply it to the rest.