We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401d2a1 commit 47eae84Copy full SHA for 47eae84
sklearn/model_selection/tests/test_search.py
@@ -166,21 +166,19 @@ def test_grid_search():
166
167
168
def test_grid_search_incorrect_param_grid():
169
+ clf = MockClassifier()
170
assert_raise_message(
171
ValueError,
172
"Parameter values for parameter (C) need to be a sequence.",
- GridSearchCV,
173
- None,
174
- {'C': 1})
+ GridSearchCV, clf, {'C': 1})
175
176
177
def test_grid_search_param_grid_includes_sequence_of_a_zero_length():
178
179
180
"Parameter values for parameter (C) need to be a non-empty sequence.",
181
182
183
- {'C': []})
+ GridSearchCV, clf, {'C': []})
184
185
186
@ignore_warnings
0 commit comments