Learn by Implementation: K-Nearest Neighbor
depiesml.wordpress.com
depiesml.wordpress.com
We started with this basically what's in the article, then used Locality Sensitive Hashing (http://www.mit.edu/~andoni/LSH) as a real-time approximation and today we use NNDescent from this priceton paper: http://www.cs.princeton.edu/cass/papers/www11.pdf