k-Nearest Neighbors (k-NN) Glossary Definition

Term k-Nearest Neighbors (k-NN)
Definition

k-nearest neighbors is a machine learning method that classifies or predicts a value by comparing a new example with the most similar examples in a dataset.

Context & Usage

It is simple and intuitive, but performance depends heavily on distance measures, feature quality, scaling, and dataset size.

Categories Software Development and Programming, Artificial Intelligence