The KNN classification algorithm by Let k be the number of nearest neighbors and D be the set of training examples for each test example z = (x’,y’) doCompute d(x’,x), the distance between z and every example, (x,y) ϵ DSelect Dz ⊆ D, the set of k closest training examples to z The KNN classification algorithm KNN Classification