Skip to content

Fix weird import in neural_network/rbm.py #12032

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 1 commit into from
Sep 7, 2018

Conversation

jeremiedbb
Copy link
Member

I noticed that in neural_network/rbm.py, the issparse function is imported from scipy through sklearn/utils.
I don't know if there was a custom issparse function in utils in the past but there's not one today. So it should be imported directly.

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 LGTM.

(Travis fails due to an unrelated reason, also on master...)

@rth rth merged commit 121dd5a into scikit-learn:master Sep 7, 2018
@jeremiedbb jeremiedbb deleted the rbm-issparse branch September 7, 2018 14:00
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Sep 9, 2018
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Sep 17, 2018
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.

2 participants