-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
I can not achieve inplace scaling by using sklearn.preprocessing.minmax_scale #27307
Comments
In your case the input array dtype is an int dtype. |
After this line |
Yes, thanks for you answer! The official doc really needs an improvement. |
Thanks for you reply, but I think there should't return anything of the funtion and just make the data normalized inplacely.After I set the dtype of data to np.float, data is normalized inplace, but still return a useless copy of data, i.e., data_copy, this does make nonse and not consistent with the official doc" copy =False would avoid a copy of data".Official doc about the copy parameter of function minmax_scale |
/take |
This issue had stalled to the best of my knowledge. |
Describe the bug
By setting the copy=False, ndarray data has not changed unexpectedly
Steps/Code to Reproduce
Expected Results
A reasonable explanation about the copy parameter of minmax_scala funciton
Actual Results
There are no warings and errors, just the result is not wrong!
Versions
The text was updated successfully, but these errors were encountered: