Skip to content

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

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

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Sep 9, 2019

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
Copy link
Member

@adrinjalali adrinjalali 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
Copy link
Member Author

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

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.

LGTM, aside for the comment below.

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

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!

@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