Medium
Test Accuracy for k
The starter code splits iris into training and test sets. Read
k, train a KNeighborsClassifier(n_neighbors=k) on the training set and print its accuracy on the test set with 3 decimal places.Input
One integer k.
Output
One number with 3 decimals.
Sample 1
Input
5
Output
0.974
Sample 2
Input
1
Output
0.947
Output appears hereHints