LearnPy Hub
← Machine Learning: scikit-learn problems
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
solution.py
Output appears here
Hints
Count the Mistakes · Python practice problem · LearnPy Hub