📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is a nearest-neighbour classifier (k-NN)?

A. A classifier that predicts the majority class among the k closest training examples ✅
B. A clustering method
C. A method that needs no training data at all
D. A classifier that fits a straight line

Correct Answer: A. A classifier that predicts the majority class among the k closest training examples

Explanation

K-NN stores the training data and, for a new point, looks at its k nearest neighbours and takes their majority label.