Machine Learning & Training
What Is K-Nearest Neighbors?
K-nearest neighbors (KNN) is a simple algorithm that makes predictions based on the closest examples in the training data. For classification, it assigns the most common label among the nearest neighbors, and for regression it averages their values. Because it relies on distance, feature scaling is often important.
Further reading
Read more about k-nearest neighbors — articles and blogs from around the web: