Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix joblib ImportError and FutureWarning #33

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix ImportError for deprecated dask_ml.joblib and FutureWarning for s…
…klearn.externals.joblib. Fixes #27.
  • Loading branch information
dnowacki-usgs committed Aug 22, 2019
commit 0906e509970c5d6b122044e574ab7fbe856a3608
3 changes: 1 addition & 2 deletions machine-learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"metadata": {},
"outputs": [],
"source": [
"import dask_ml.joblib # register the distriubted backend\n",
"from sklearn.datasets import make_classification\n",
"from sklearn.svm import SVC\n",
"from sklearn.model_selection import GridSearchCV\n",
Expand Down Expand Up @@ -125,7 +124,7 @@
"metadata": {},
"outputs": [],
"source": [
"from sklearn.externals import joblib\n",
"import joblib\n",
"\n",
"with joblib.parallel_backend('dask', scatter=[X, y]):\n",
" grid_search.fit(X, y)"
Expand Down