Forget sklearn for a Moment: Understanding KNN by Coding It Yourself

One of the simplest machine learning algorithms is KNN, which stands for K-Nearest Neighbors. It’s a supervised machine learning, meaning…