update knn class