How can distance weighting or probability thresholds mitigate class imbalance in KNN?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how distance-weighted voting, class-weighted voting and a tuned probability threshold can reduce the majority-class bias of k-nearest neighbors on imbalanced data. Tests understanding of KNN voting, choosing a threshold on validation data, and imbalance-aware evaluation metrics.