Practical Machine Learning With Python - Part 3

@machinelearnbot 

K-nearest neighbors(KNN for short) is one of the simplest Machine Learning algorithm. KNN is a supervised learning algorithm which can be used for both classification and regression. This is slightly different from the algorithms that we have seen so far. Let me explain this algorithm with an example of classification problem. First step in KNN is to plot training data in a feature space.