Skip to content

MNT Make modules private in feature_extraction - #15321

Merged
NicolasHug merged 7 commits into
scikit-learn:masterfrom
thomasjpfan:deprecated_feature_extraction
Oct 25, 2019
Merged

NicolasHug merged 7 commits into
scikit-learn:masterfrom
thomasjpfan:deprecated_feature_extraction

Conversation

@thomasjpfan

@thomasjpfan thomasjpfan commented Oct 21, 2019 •

Copy link
Copy Markdown
Member

Reference Issues/PRs

Partially addresses #9250

CC @NicolasHug @adrinjalali

@thomasjpfan thomasjpfan changed the title [MRG] MNT Deprecated paths in feature_extraction [MRG] MNT Make modules private in feature_extraction Oct 21, 2019

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should also deprecate cython files ;)

There are stuff in text that should be private I think, like the VectorizerMixin?

Same for image.extract_patches... Not sure what to do with these.

Comment thread .gitignore Resolved

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LTGM apart of the comment of @NicolasHug which need to be addressed.

@thomasjpfan

Copy link
Copy Markdown
Member Author

There are stuff in text that should be private I think, like the VectorizerMixin? Same for image.extract_patches... Not sure what to do with these.

Two options:

  1. Move to _text and _image and deprecate them.
  2. Move to _text and _image and remove them. (They are not documented)

@adrinjalali

Copy link
Copy Markdown
Member

I would move them to _* and deprecate the public ones (through text and image), and not include the undocumented ones in __init__.

@thomasjpfan

Copy link
Copy Markdown
Member Author

Updated this PR with a simplier approach. I didn't create another file and deprecated VectorizerMixin and extract_patches in the same file.

@thomasjpfan

Copy link
Copy Markdown
Member Author

CC @NicolasHug

@thomasjpfan thomasjpfan added this to the 0.22 milestone Oct 25, 2019
@NicolasHug NicolasHug changed the title [MRG] MNT Make modules private in feature_extraction MNT Make modules private in feature_extraction Oct 25, 2019
@NicolasHug
NicolasHug merged commit bb3b3f9 into scikit-learn:master Oct 25, 2019
@NicolasHug

Copy link
Copy Markdown
Member

Thanks @thomasjpfan !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants