I see now you have used this name already below. Why creating a new KNN object anyway? It should be possible to just change the mode, right?