Medium
Count the Mistakes
Using the same iris split as the starter, train
KNeighborsClassifier(n_neighbors=k) and print how many test flowers it got wrong, then how many it got right. Use the confusion matrix: correct answers are on its diagonal.Input
One integer k.
Output
Two integers: wrong, then right.
Sample 1
Input
5
Output
1 37
Sample 2
Input
1
Output
2 36
Output appears hereHints