← back

k-nearest neighbors

add points, adjust k

How it works

No training. To predict a new point, find the K closest labeled neighbors and take a majority vote.

Small K = flexible but noisy. Large K = smooth but may miss detail. Try both.

5