AICurious Logo

What is: k-Nearest Neighbors?

Year2000
Data SourceCC BY-SA - https://paperswithcode.com

kk-Nearest Neighbors is a clustering-based algorithm for classification and regression. It is a a type of instance-based learning as it does not attempt to construct a general internal model, but simply stores instances of the training data. Prediction is computed from a simple majority vote of the nearest neighbors of each point: a query point is assigned the data class which has the most representatives within the nearest neighbors of the point.

Source of Description and Image: scikit-learn