K-Nearest Neighbors from Scratch in Python

Posted on March 16 2017 in Machine Learning • Tagged with k-nearest neighbors, classification, pythonLeave a comment

MNIST

The \(k\)-nearest neighbors algorithm is a simple, yet powerful machine learning technique used for classification and regression. The basic premise is to use closest known data points to make a prediction; for instance, if \(k = 3\), then we'd use 3 nearest neighbors of a point in the test set …

Continue reading