Skip to content

sklearn.utils.fixes.MaskedArray removed in 0.23.0 #17198

Closed

Description

@gar1t

In scikit-learn 0.23.0:

>>> 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.

Activity

  1. NicolasHug commented on May 13, 2020

    @NicolasHug
    Member

    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.

  2. rth commented on May 13, 2020

    @rth
    Member

    @gar1t Also see temporary workaround for scikit-optimize in scikit-optimize/scikit-optimize#902 (comment)

  3. added a commit that references this issue on Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions