k-Nearest Neighbours: Decision Map and Error versus k (2D)
A top-down decision map with Blender-rendered class tokens, the query point with its k neighbours and the metric ball, plus the error-versus-k curve that shows the bias-variance trade-off. Same shared model as the 3D lab table.
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.
A top-down decision map with Blender-rendered class tokens, the query point with its k neighbours and the metric ball, plus the error-versus-k curve that shows the bias-variance trade-off. Same shared model as the 3D lab table.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install