8000 MNT Put back and properly deprecate MaskedArray by NicolasHug · Pull Request #17199 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MNT Put back and properly deprecate MaskedArray #17199

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

Merged
merged 2 commits into from
May 13, 2020

Conversation

NicolasHug
Copy link
Member

Fixes #17198

MaskedArray was deleted in #16725 without deprecation. It breaks scikit-optimize.

Sad, but I guess we need to put it back and deprecate...

CC @rth @thomasjpfan @adrinjalali

Should be in the bugfix release

Copy link
Member
@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @NicolasHug

Copy link
Member
@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @NicolasHug !

There was no deprecation warning because as far as I know we don't maintain backward compatibility on the semi-private utils.fixes. We can certainty merge this, but we should also make it private in the near future.

@rth rth changed the title [MRG] MNT Put back and properly deprecate MaskedArray MNT Put back and properly deprecate MaskedArray May 13, 2020
@rth rth merged commit cbe9f08 into scikit-learn:master May 13, 2020
@adrinjalali adrinjalali added this to the 0.23.1 milestone May 13, 2020
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request May 18, 2020
@amueller
Copy link
Member

@amueller
Copy link
Member

also reported here: scikit-optimize/scikit-optimize#902 (comment)

@amueller
Copy link
Member
amueller commented Jun 15, 2020

This is in fact because of this >5yr old FIXME:

# FIXME: we should probably reset __new__ for full generality

MaskedArray has a __new__ not an __init__ and so the @deprecated decorator breaks.

viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sklearn.utils.fixes.MaskedArray removed in 0.23.0
5 participants
0