Normalization
Lesson 7 of 18 · DS.Micro
In the wine dataset, Proline ranges from 278 to 1680 while Hue stays near 1. For methods that measure distance, the larger column dominates everything.
Standardizing gives each column mean 0 and standard deviation 1.
In Orange, normalization lives in the Preprocess widget, under "Normalize Features". Orange's kNN and k-Means also normalize by default.
Use "Standardize" and check: the mean of Proline = 0.
Check yourself
Why normalize before a kNN?
- Because it increases the number of neighbors
- Because kNN measures distances and Proline (hundreds) would dominate Hue (around 1)
- Because kNN does not accept negative numbers
Do it in the browser: a real data science tool, a short mission and instant feedback. No install.
Start this lesson — free