Machine learning

K-Nearest Neighbors

K-Nearest Neighbors (KNN), formalized by Cover and Hart in 1967, is a non-parametric, instance-based method that classifies or predicts a new observation by looking at the k closest examples in the training data. For classification it takes a majority vote among those neighbors; for regression it averages their values.

Open in MethodMindSoonVideoSoon

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Sources

  1. Cover, T.M. & Hart, P.E. (1967). Nearest Neighbor Pattern Classification. IEEE Transactions on Information Theory, 13(1), 21–27. DOI: 10.1109/TIT.1967.1053964

Related methods

Referenced by

ScholarGateK-Nearest Neighbors (K-Nearest Neighbors (KNN) Classification and Regression). Retrieved 2026-06-04 from https://scholargate.app/en/machine-learning/knn