MNT Update deprecation message in RegressorMixin.score to tell users how to avoid the warning#13477
Merged
qinhanmin2014 merged 2 commits intoscikit-learn:masterfrom Mar 29, 2019
qinhanmin2014:r2_score_deprecation_message
Merged
MNT Update deprecation message in RegressorMixin.score to tell users how to avoid the warning#13477qinhanmin2014 merged 2 commits intoscikit-learn:masterfrom qinhanmin2014:r2_score_deprecation_message
qinhanmin2014 merged 2 commits intoscikit-learn:masterfrom
qinhanmin2014:r2_score_deprecation_message
Conversation
…how to avoid the warning
Member
Author
|
Actually another simple way to avoid the warning is to use |
NicolasHug
reviewed
Mar 19, 2019
sklearn/base.py
Outdated
| either call `metrics.r2_score` directly or make a custom scorer with | ||
| `metrics.make_scorer`. | ||
| `multioutput.MultiOutputRegressor`). To specify the default value | ||
| manually and avoid the warning,, please either call `metrics.r2_score` |
Member
|
As setting |
Member
Author
OK, I'll turn to a more detailed version for this annoying issue. |
Member
Author
|
Trivial, merging. |
1 similar comment
Member
Author
|
Trivial, merging. |
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…how to avoid the warning (scikit-learn#13477)
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…l users how to avoid the warning (scikit-learn#13477)" This reverts commit a11c28e.
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
…l users how to avoid the warning (scikit-learn#13477)" This reverts commit a11c28e.
koenvandevelde
pushed a commit
to koenvandevelde/scikit-learn
that referenced
this pull request
Jul 12, 2019
…how to avoid the warning (scikit-learn#13477)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In response to @amueller 's comment #13157 (comment)