Home▸Machine Learning & Neural Networks▸k-Nearest Neighbours: Decision Boundary, Distance Metric and Leave-One-Out Error

k-Nearest Neighbours: Decision Boundary, Distance Metric and Leave-One-Out Error

Classify a moving query point by the vote of its k nearest labelled neighbours on a Blender-built lab table. Change k, the training set, class overlap, the distance metric and the vote weighting, and watch the decision map, the leave-one-out and test errors, the Bayes limit and the Cover-Hart bound for 1-NN. Numerical checks cover neighbour search, Bayes error, leave-one-out and the triangle inequality.

Machine Learning & Neural Networks3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
k-Nearest Neighbours: Decision Boundary, Distance Metric and Leave-One-Out Error ↗ Open standalone

Classify a moving query point by the vote of its k nearest labelled neighbours on a Blender-built lab table. Change k, the training set, class overlap, the distance metric and the vote weighting, and watch the decision map, the leave-one-out and test errors, the Bayes limit and the Cover-Hart bound for 1-NN. Numerical checks cover neighbour search, Bayes error, leave-one-out and the triangle inequality.

⚙ Under the hood

Classify a moving query point by the vote of its k nearest labelled neighbours on a Blender-built lab table. Change k, the training set, class overlap, the distance metric and the vote weighting, and watch the decision map, the leave-one-out and test errors, the Bayes limit and the Cover-Hart bound for 1-NN. Numerical checks cover neighbour search, Bayes error, leave-one-out and the triangle inequality.

Canvas 2Dk-NNClassificationSupervisedLazy Learningk-Nearest NeighboursBayes ErrorCross-ValidationBias-VarianceMachine Learning

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)