Skip to content

Updated default error_score to raise_deprecating and added a warning message before the raise - #10583

Closed
uwaisiqbal wants to merge 2 commits into
scikit-learn:masterfrom
uwaisiqbal:master
Closed

uwaisiqbal wants to merge 2 commits into
scikit-learn:masterfrom
uwaisiqbal:master

Conversation

@uwaisiqbal

Copy link
Copy Markdown

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

@jnothman jnothman left a comment

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.

I think you've missed some of the point. We still need error_score='raise' to be an option. (Even if we just warned and allowed the user to set the warning handler to 'raise', it would lose the original traceback.) So while we change the default to 'raise-deprecating', we do not change the meaning of 'raise', we only add 'raise-deprecating' as a variant that both raises the error and warns that in the future the default will change.

I really implore you to look at the contributor guidelines:

  • you have not marked whether this work is WIP or MRG based on whether it is acceptable for merge or acknowledged as having work to do.
  • your PR description does not state the issue it fixes
  • you do not have tests for your changes
  • you have a PEP8 error: line lengths must be under 80 characters

@qinhanmin2014

Copy link
Copy Markdown
Member

Resolved in #10677. Thanks @Oasis789 for your contribution.

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.

3 participants