Nearest Neighbors

NN Find the training instances that are the closest to the

test instance, and classify the test instance as the majority class of the nearest training instances.

  • Choosing
    • Too small: overfitting, susceptible to noise
    • Too big: misclassify, instances far away are included
  • Majority voting vs. distance-weighted, or taking average.