K-Nearest Neighbors Algorithm

The k-nearest neighbors algorithm, also known as KNN, is a non parametric , supervised learning classifier, which working off the…