Home▸Machine Learning & Neural Networks▸K-Nearest Neighbors (KNN) Interactive - ML Demo

🧪 K-Nearest Neighbors (KNN) Interactive - ML Demo

Interactive k-nearest neighbours classifier: eight data sets, Euclidean, Manhattan, Chebyshev, Minkowski and cosine distances, uniform or inverse-distance votes, decision regions, leave-one-out accuracy for every K and four in-page numerical checks.

Machine Learning & Neural Networks2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
K-Nearest Neighbors (KNN) Interactive - ML Demo ↗ Open standalone
⚙ Under the hood

This simulation provides a practical demonstration of the K-Nearest Neighbors algorithm as part of an interactive machine learning demo.

KNNMachine Learning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)