K-nearest neighbour is a Machine learning algorithm which falls under supervised learning which can be used for both classification and regression predictive problems. So in this article, we will be unpacking one of the algorithms from supervised learning.

Let’s understand all this step-wise and at the end, we will be able to connect all the dots. Before understanding K-NN first, let’s get an idea about what is supervised learning.

Supervised Learning is where you have input variables (X) as well as output variables(Y) {i.e. we have labelled dataset} and you use an algorithm to learn the mapping function from input…

Himani Mogra

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store