Tutorial
Jun 26, 20268 min read
0
KNN: Classification and Regression Intuition
Most classifiers learn parameters during training — weights, thresholds, tree splits — and use those parameters to make predictions. KNN does neither. There is…
~/blog/tutorials/machine-learning
Most classifiers learn parameters during training — weights, thresholds, tree splits — and use those parameters to make predictions. KNN does neither. There is…
Brute-force KNN computes the distance from every query to every training sample — $O(n)$ distance computations per prediction. At one million training samples a…
KNN theory and spatial data structures are complete. This post runs KNN classifier on Wine Quality and KNN regressor on California Housing — finding optimal $k$…