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
FIX StandardScaler.inverse_transform raise error when the input is a 1d array #19752
FIX StandardScaler.inverse_transform raise error when the input is a 1d array #19752
Conversation
Thanks for the PR. Could you please add a new test in sklearn/preprocessing/tests/test_data.py that checks the new behavior only for StandardScaler in isolation?
Please also add a new entry in doc/whats_new/v1.0.rst.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
|
Hey guys, since the PR has been opened for a couple month, just checking if there is any other changes that I need to work on regarding this issue? |
Thank you for the ping @MaxwellLZH
I synced this PR with main and I think its ready to merge.
|
Thanks @MaxwellLZH |
…1d array (scikit-learn#19752) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
…1d array (scikit-learn#19752) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>


Reference Issues/PRs
This is a fix to issue #19518.
What does this implement/fix? Explain your changes.
Added check_array in
StandardScaler.inverse_transform, and fixed failing test cases.The text was updated successfully, but these errors were encountered: