Open anderl80 opened 5 years ago
Also the imports raise the error:
ImportError Traceback (most recent call last)
<ipython-input-3-4af4d06194bc> in <module>()
----> 1 import dask_ml.joblib # register the distriubted backend
2 from sklearn.datasets import make_classification
3 from sklearn.svm import SVC
4 from sklearn.model_selection import GridSearchCV
5 import pandas as pd
/srv/conda/lib/python3.6/site-packages/dask_ml/joblib.py in <module>()
----> 1 import distributed.joblib # noqa
/srv/conda/lib/python3.6/site-packages/distributed/joblib.py in <module>()
17
18
---> 19 raise ImportError(msg)
ImportError: It is no longer necessary to `import dask_ml.joblib` or
`import distributed.joblib`.
This functionality has moved into the core Joblib codebase.
To use Joblib's Dask backend with Scikit-Learn >= 0.20.0
from dask.distributed import Client
client = Client()
from sklearn.externals import joblib
with joblib.parallel_backend('dask'):
# your scikit-learn code
See http://ml.dask.org/joblib.html for more information.
@anderl80 I am able to execute the entire notebook. Try putting import dask_ml.joblib
in its own cell
You no longer need the joblib import (joblib/sklearn upstreamed the dask functionality).
Probably though we should just remove the notebook from this repository. The Pangeo community shouldn't have to deal with this maintenance burden.
On Fri, Dec 21, 2018 at 3:45 AM Robin notifications@github.com wrote:
@anderl80 https://github.com/anderl80 I am able to execute the entire notebook
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pangeo-data/pangeo-example-notebooks/issues/27#issuecomment-449367984, or mute the thread https://github.com/notifications/unsubscribe-auth/AASszAb0Ts6d4Ptd1yH0UIsbcW0W1D8gks5u7Mn2gaJpZM4Yn5Y8 .
Executing line
results in