KNN Explorer

Interactive K-Nearest Neighbors Visualization — ML-II Book by Dr Milan Amrut Joshi

Train — Class A
Train — Class B
Test points
Predicted A
Predicted B
Decision region

K Value

3

Dataset

80
15%

Distance Metric

Metrics

Test Accuracy
3
Current K
80
Train Points
0
Test Points
Click anywhere on the canvas to add a test point (grey). KNN will classify it using the K nearest training neighbors.