# Determine the best k when performing knn [duplicate]

I am using the knn means algorithm to distinguish groups. In case on the iris dataset, lets take this example:

from sklearn import datasets