You are currently viewing K NN Iris example

K NN Iris example

We have read about K NN algorithm

Now lets see how to apply it with the help of Iris’s example.

Thus by giving any sample as input our machine can predict the Species by scanning ‘k’ (here we have taken 5) nearest neighbors.

Leave a Reply