Let’s Make a KNN Classifier from Scratch

You’ll need only Numpy and a bit of time. Source code included.

Dario Radečić
Towards Data Science
7 min readJan 6, 2020

--

Coding out the entire machine algorithms from scratch can be a tedious process. That’s why we have libraries. The other reason is, our own implementation most likely cannot compete with out of the box solutions like the one from Scikit-Learn, that is if we don’t put enough time and effort into it.

Photo by Alvin Engler on Unsplash

--

--