Why is k typically set to an odd number in binary classification with KNN?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks why the number of neighbors in KNN is usually chosen to be odd when there are two classes. Tests understanding of majority voting, how libraries break ties, where the rule fails with more classes or equal distances, and alternatives such as distance weighting.