Skip to content

MRG don't warn on changing dtypes in scalers#13306

Merged
amueller merged 3 commits intoscikit-learn:masterfrom
amueller:dtype_warning_scalers
Feb 28, 2019
Merged

MRG don't warn on changing dtypes in scalers#13306
amueller merged 3 commits intoscikit-learn:masterfrom
amueller:dtype_warning_scalers

Conversation

@amueller
Copy link
Copy Markdown
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
Copy Markdown
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.

""" # 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
Copy Markdown
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
Copy Markdown
Member

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

@amueller
Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
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
Copy Markdown
Member Author

with removing the parameter? and do a deprecation cycle?

@amueller
Copy link
Copy Markdown
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