8000 MRG don't warn on changing dtypes in scalers by amueller · Pull Request #13306 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 3 commits into from
Feb 28, 2019

Conversation

amueller
Copy link
Member

Don't warn on changing dtypes in scalers. It's really annoying and doesn't seem very useful.

@amueller amueller changed the title WIP don't warn on changing dtypes in scalers MRG don't warn on changing dtypes in scalers Feb 27, 2019
Copy link
Member
@jorisvandenbossche jorisvandenbossche left a 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',
Copy link
Member

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

@glemaitre
Copy link
Member

I think that @jorisvandenbossche has a good point. Otherwise it would be really good to merge this.

@amueller
Copy link
Member Author

Happy to remove that, but wasn't sure if it requires deprecation?
@jnothman wanna do a quick review ;)

Copy link
Member
@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree.

@amueller
Copy link
Member Author

with removing the parameter? and do a deprecation cycle?

@amueller
Copy link
Member Author

we can always remove / deprecate this later. two check marks -> green button

@amueller amueller merged commit 8d815af into scikit-learn:master Feb 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
* don't warn on changing dtypes in scalers

* remove tests for dtype warnings

* len(False) > len(True)

pep8
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
* don't warn on changing dtypes in scalers

* remove tests for dtype warnings

* len(False) > len(True)

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

4 participants
0