How does inverse-distance weighting work in KNN regression?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how inverse-distance weighting turns the k nearest neighbors' targets into a regression prediction. Tests your grasp of the weighting formula, the effect of the distance power, the zero-distance case, and how the method compares with a plain neighbor average.