-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MRG don't warn on changing dtypes in scalers #13306
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.
If we go through with this, we might actually remove that keyword from check_array, because those were the only use cases now internally.
@@ -137,7 +137,7 @@ def scale(X, axis=0, with_mean=True, with_std=True, copy=True): | |||
|
|||
""" # noqa | |||
X = check_array(X, accept_sparse='csc', copy=copy, ensure_2d=False, | |||
warn_on_dtype=True, estimator='the scale function', | |||
warn_on_dtype=False, estimator='the scale function', |
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.
can also just remove the warn_on_dtype=False
here, as that is the default of check_array
I think that @jorisvandenbossche has a good point. Otherwise it would be really good to merge this. |
Happy to remove that, but wasn't sure if it requires deprecation? |
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.
I agree.
with removing the parameter? and do a deprecation cycle? |
we can always remove / deprecate this later. two check marks -> green button |
* don't warn on changing dtypes in scalers * remove tests for dtype warnings * len(False) > len(True) pep8
)" This reverts commit 69a9299.
)" This reverts commit 69a9299.
* don't warn on changing dtypes in scalers * remove tests for dtype warnings * len(False) > len(True) pep8
Don't warn on changing dtypes in scalers. It's really annoying and doesn't seem very useful.