1. 程式人生 > >Nearest Neighbors (KNN): Solving Classification Problems | AITopics

Nearest Neighbors (KNN): Solving Classification Problems | AITopics

In this tutorial, we are going to use the K-Nearest Neighbors (KNN) algorithm to solve a classification problem. Firstly, what exactly do we mean by classification? Classification across a variable means that results are categorised into a particular group. The KNN algorithm is one the most basic, yet most commonly used algorithms for solving classification problems. KNN works by seeking to minimize the distance between the test and training observations, so as to achieve a high classification accuracy.