Labs / Classical ML
K-nearest neighbors
Move a query point, change K and the distance metric, and see what feature scaling does.
Theory and worked examples: K-nearest neighbors
K-nearest neighbors lab
Synthetic customers: age vs income. Click or drag anywhere to move the query point.
did not buy (circles)bought (squares)neighborhood (k-th distance)