Skip to content

be more friendly in the deprecation warning of cv=3#13395

Merged
adrinjalali merged 3 commits intoscikit-learn:masterfrom
amueller:friendly_warning
Mar 5, 2019
Merged

be more friendly in the deprecation warning of cv=3#13395
adrinjalali merged 3 commits intoscikit-learn:masterfrom
amueller:friendly_warning

Conversation

@amueller
Copy link
Copy Markdown
Member

@amueller amueller commented Mar 5, 2019

I don't like that the warning tells users to not rely on the default. If we want the user not to rely on the default, we should change it to not have a default instead of 5. I think 5 is a good default and the user can happily rely on it.

I have been unhappy about this warning for a while but didn't really have the bandwidth to do something about it.

Most users will see this warning at some point, I think we should make sure it's friendly and makes sense.

@adrinjalali adrinjalali merged commit d879b5c into scikit-learn:master Mar 5, 2019
@amueller
Copy link
Copy Markdown
Member Author

amueller commented Mar 5, 2019

:D thanks folks!

xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
…#13395)

* be more friendly in the deprecation of cv=3

* add hint on specifying cv

* catch all the right warnings
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
…#13395)

* be more friendly in the deprecation of cv=3

* add hint on specifying cv

* catch all the right warnings
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