Introduction - If you have any usage issues, please Google them yourself
The core idea of the kNN algorithm is that if the majority of the k most neighboring samples of a sample in the feature space belong to a particular category, the sample also belongs to this category and has the characteristics of the sample on that category