Distance-Weighted kNN
- We might want to weight the nearer neighbors more heavily:
where
and is distance between and .
- Using this function it makes sense to use all examples
instead of just .
- If all training examples are used we call the algorithm a
global method. If only the nearest are use then its
a local method.