← All lessons

Ask the neighbours (KNN)

Step 2 of 21
Try it

Try different k

Each dot is a student we already know. The yellow diamond is the new student. The lines connect it to its k nearest neighbours.
Try k = 1, then a bigger k. Watch whether the guess changes.
Loves cricketLoves footballNew student
01234567890123456789

k = 1: 0 cricket votes, 1 football vote → guess: Football