Skip to content

MAINT Deprecate any import that is not from sklearn.neural_net… - #14939

Merged
rth merged 15 commits into
scikit-learn:masterfrom
NicolasHug:underscore_files_neural_network_bis
Sep 10, 2019
Merged

rth merged 15 commits into
scikit-learn:masterfrom
NicolasHug:underscore_files_neural_network_bis

Conversation

@NicolasHug

@NicolasHug NicolasHug commented Sep 9, 2019 •

Copy link
Copy Markdown
Member

Exactly the same as #14913 but with generic deprecation tools and tests that can be re-used for other modules

@NicolasHug NicolasHug changed the title [NOMRG] Deprecate any import that is not from sklearn.neural_network -- more generic [MRG] Deprecate any import that is not from sklearn.neural_network -- more generic Sep 9, 2019

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

Thanks!

@NicolasHug

Copy link
Copy Markdown
Member Author

@rth does this have your +1 too ;) ?

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

LGTM, aside for the comment below.

Comment thread conftest.py Outdated
# ensure these warnings are properly raised in the tests.
collect_ignore_glob = [
"sklearn/neural_network/rbm.py", # 0.24
"sklearn/neural_network/multilayer_perceptron.py", # 0.24

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.

I would still prefer the approach as outlined in #14913 (comment)

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

Thanks!

@rth rth changed the title [MRG] Deprecate any import that is not from sklearn.neural_network -- more generic MAINT Deprecate any import that is not from sklearn.neural_net… Sep 10, 2019
@rth
rth merged commit 2cf26db into scikit-learn:master Sep 10, 2019
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.

3 participants