You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sklearn.utils.fixes.MaskedArray removed in 0.23.0 #17198
>>> import skopt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "venv/lib/python3.6/site-packages/skopt/__init__.py", line 54, in <module>
from .searchcv import BayesSearchCV
File "venv/lib/python3.6/site-packages/skopt/searchcv.py", line 16, in <module>
from sklearn.utils.fixes import MaskedArray
ImportError: cannot import name 'MaskedArray'
There was no deprecation warning in earlier version - now any library that relied on this (e.g. scikit optimize) is broken.
@gar1t your best bet is still to rely on numpy now. We have bumped our numpy requirements so if you depend on scikit-learn, you should be able to use the proper numpy class.
Activity
Exclude 0.23.0 of scikit-learn - breaks scikit-optimize
NicolasHug commentedon May 13, 2020
Thansk for the report @gar1t
We really need to stop making things public by default.
Fixed in #17199
@gar1t your best bet is still to rely on numpy now. We have bumped our numpy requirements so if you depend on scikit-learn, you should be able to use the proper numpy class.
rth commentedon May 13, 2020
@gar1t Also see temporary workaround for scikit-optimize in scikit-optimize/scikit-optimize#902 (comment)
Relax limit on scikit-learn