-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Preserving dtype for np.float32 in SparsePCA and MiniBatchSparsePCA #22111
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a few minor suggestions:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A last sole comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, @takoika.
Reference Issues/PRs
This PR is part of #11000 .
What does this implement/fix? Explain your changes.
This MR confirms that SparsePCA and MiniBatchSparsePCA transformers preserve numpy.float32. Due to #22002 sparse PCA come to preserve numpy.float32. So tests to confirm preserving numpy.float32 are added.
Any other comments?
I used #20155 as references to make this.