Introduction - If you have any usage issues, please Google them yourself
NN is classified by measuring the distance between the different eigenvalues. It is the idea that the sample also belongs to this category if the majority of k samples of the sample in the feature space are the most similar (ie, the nearest neighbor in the feature space). K is usually an integer greater than 20. In the KNN algorithm, the selected neighbors are objects that have been correctly classified. The method determines the category of the sample to be sorted only on the classification decision based on the nearest one or several samples.