Let’s Make a KNN Classifier from Scratch
You’ll need only Numpy and a bit of time. Source code included.
Published in
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.