Skip to content

Commit ca94d05

Browse files
committed
Address an old review ;)
1 parent 8127172 commit ca94d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/model_selection/grid_search_digits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
print()
6363
means = clf.cv_results_['mean_test_score']
6464
stds = clf.cv_results_['std_test_score']
65-
for i in range(len(clf.cv_results_['params'])):
65+
for mean, std, params in zip(means, stds, clf.cv_results_['params']):
6666
print("%0.3f (+/-%0.03f) for %r"
67-
% (means[i], stds[i] * 2, clf.cv_results_['params'][i]))
67+
% (mean, std * 2, params))
6868
print()
6969

7070
print("Detailed classification report:")

0 commit comments

Comments
 (0)