K-Nearest Neighbors Classifier

Explore the K-Nearest Neighbors (KNN) algorithm. Adjust the 'K' value, then click on the canvas to classify a new point based on the majority class of its 'K' nearest neighbors.

Class A
Class B
New Point
K Nearest Neighbors
Click on the canvas to classify a new point!