dask-ml icon indicating copy to clipboard operation
dask-ml copied to clipboard

Error importing "IncrementalSearchCV"

Open tanayag opened this issue 7 years ago • 4 comments

>>> from dask_ml.model_selection import IncrementalSearchCV
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'IncrementalSearchCV'

When I am importing IncrementalSearchCV this is the error, and there is no traceback to track the problem!

tanayag avatar Feb 19 '19 08:02 tanayag

went into this file: https://github.com/dask/dask-ml/blob/master/dask_ml/model_selection/__init__.py

removed the exception and then got to know that dask distributed is not installed

tanayag avatar Feb 19 '19 12:02 tanayag

Errors shouldn't pass silently, and shouldn't require reading the source.

This issue would probably be resolved with a dummy class in the try/except block in model_selection/__init__.py.

stsievert avatar Feb 19 '19 20:02 stsievert

It'd be best to re-raise the import error with an informative message saying that incremental search requires distributed.

On Tue, Feb 19, 2019 at 2:03 PM Scott Sievert [email protected] wrote:

Errors shouldn't pass silently, and shouldn't require reading the source.

This issue would probably be resolved with a dummy class in the try/except block in model_selection/init.py.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dask/dask-ml/issues/464#issuecomment-465288536, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQHIqzffVVSMOb3jvpYHDhh-_BybT6Cks5vPFiOgaJpZM4bCZzd .

TomAugspurger avatar Feb 19 '19 20:02 TomAugspurger

Created a pull #467 , it should show the exact traceback, hence I put it with other hyper-parameter tuning algorithms

tanayag avatar Feb 20 '19 09:02 tanayag