AI Glossary

K-nearest neighbors

Also called KNN

What does “K-nearest neighbors” mean?

K-nearest neighbors: Making a prediction from nearby examples in a chosen feature space.

K-nearest neighbors visual guide: Making a prediction from nearby examples in a chosen feature space.
Visual guide Open full size (new tab)

What is an example of “K-nearest neighbors”?

A simple classifier votes among the closest labeled images.