Hyperparameter

A setting chosen by a person before training, such as k in k-NN (later lessons meet another: the learning rate).

With more voters, odd emails get outvoted and the boundary becomes smoother. k is a hyperparameter — a setting we choose, not something the model learns.
From Learning from examples, step “Ask more neighbours”

See it in action

Try hyperparameter hands-on in the lesson Learning from examples, part of the AI fundamentals course.

Open the lesson