Skip to content

Glossary: ML Basics

k-nearest neighbors

Also written: kNN, KNN, KNeighborsClassifier, nearest neighbors

A model that predicts for a new row by finding the k most similar training rows and letting them vote. Training just stores the examples.

Where the book teaches it

Related terms

DistanceHyperparameterStandardizing