📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is k-nearest neighbours (k-NN)?

A. A classifier that builds a decision tree
B. A clustering method with no labels
C. A method that trains a neural network
D. A classifier that assigns a new point the majority class among its k closest training points ✅

Correct Answer: D. A classifier that assigns a new point the majority class among its k closest training points

Explanation

K-NN is a lazy learner: it stores the training data and, at prediction time, votes among the k nearest neighbours.