What is KNN?
A method that doesn't study ahead of time. It keeps every example, and to decide a new case, it looks at the k most similar ones and goes with the majority.
Also called: k-nearest neighbors, k nearest neighbors, k-NN.
An analogy
The new kid in town who can't decide where to eat asks the k nearest neighbors and goes wherever most of them say.
Where it shows up in the course
- Classic algorithms
- Recommender systems
- Glossary