MicrolearnENPTES

Feature scaling

Lesson 8 of 20 · ML.Micro

Put features on comparable scales so distances and gradients make sense.

Here the horizontal feature varies very little (like a value in kilometres) and the vertical one a lot (like a value in metres). Distances are dominated by the vertical axis, though the horizontal one is what separates the classes.

Check yourself

Why scale features for k-NN?

Do it in the browser: a real machine learning tool, a short mission and instant feedback. No install.

Start this lesson — free
← Overfittingk-nearest neighbours →

All lessons · ML.Micro