8000 BUG digits grid search was passing cv to the wrong method · nullnotfound/scikit-learn@b796520 · GitHub
[go: up one dir, main page]

Skip to content

Commit b796520

Browse files
committed
BUG digits grid search was passing cv to the wrong method
GridSearchCV actually ignores this argument, as reported in scikit-learn#1815.
1 parent 0180188 commit b796520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/grid_search_digits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
print("# Tuning hyper-parameters for %s" % score)
5151
print()
5252

53-
clf = GridSearchCV(SVC(C=1), tuned_parameters, scoring=score)
54-
clf.fit(X_train, y_train, cv=5)
53+
clf = GridSearchCV(SVC(C=1), tuned_parameters, cv=5, scoring=score)
54+
clf.fit(X_train, y_train)
5555

5656
print("Best parameters set found on development set:")
5757
print()

0 commit comments

Comments
 (0)
0