Kernel and neighborhood methods · MLD-0595

K-nearest neighbors

Predicting from the labels or values of the k most similar stored examples.

Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.

Original example

Classify a point from neighboring feature vectors.

Original caveat

Feature scaling and distance choice strongly affect results.

Context and aliases

Level: Intermediate. Stages: Theory · Training · Inference.

Tags: ML.

Aliases: KNN · k-NN.

Related concepts

Concepts linking here

Original references

Open original record, export or annotate →