Skip to content

MNT Put back and properly deprecate MaskedArray#17199

Merged
rth merged 2 commits intoscikit-learn:masterfrom
NicolasHug:maskedarraydep
May 13, 2020
Merged

MNT Put back and properly deprecate MaskedArray#17199
rth merged 2 commits intoscikit-learn:masterfrom
NicolasHug:maskedarraydep

Conversation

@NicolasHug
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@amueller
Copy link
Copy Markdown
Member

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

@amueller
Copy link
Copy Markdown
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