Skip to content
This repository was archived by the owner on Dec 4, 2019. It is now read-only.

Commit 5d14463

Browse files
committed
Added additional GridSearchCV tests that were introduced in sklearn version 0.18.
1 parent 5528c1d commit 5d14463

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/spark_sklearn/tests/test_grid_search_1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def _add_to_module():
4545
sklearn.grid_search.GridSearchCV = SPGridSearchWrapper
4646
sklearn.grid_search.GridSearchCV_original = SKGridSearchCV
4747
from sklearn.tests import test_grid_search
48-
all_methods = [(mname, method) for (mname, method) in test_grid_search.__dict__.items()
48+
from sklearn.model_selection.tests import test_search
49+
allTests = test_grid_search.__dict__.items() + test_search.__dict__.items()
50+
all_methods = [(mname, method) for (mname, method) in allTests
4951
if mname.startswith("test_") and mname not in _blacklist]
5052

5153
for name, method in all_methods:

0 commit comments

Comments
 (0)