Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork26k
MAINT Clean up deprecations for 1.8: scoring='max_error'#31753
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
MAINT Clean up deprecations for 1.8: scoring='max_error'#31753
Conversation
github-actionsbot commentedJul 13, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks a lot@natmokval! 🚀
I think we can now fully remove the definedmax_error_scorer
in the_SCORERS
dict.
Apart from that little thing, I think that clean-up is fine and complete.
sklearn/metrics/_scorer.py Outdated
@@ -735,13 +722,6 @@ def make_scorer( | |||
r2_scorer = make_scorer(r2_score) | |||
neg_max_error_scorer = make_scorer(max_error, greater_is_better=False) | |||
max_error_scorer = make_scorer(max_error, greater_is_better=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think we can remove the definedmax_error_scorer
(from currently line 724) as well.
It is not not used anywhere anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I’ve now removed themax_error_scorer
as you suggested (currently line 724). Thanks for your help!
Thanks@StefanieSenger for reviewing this PR. I couldn’t find |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That looks very good. Thanks again,@natmokval! Approving.
Would you be so kind to help me with understanding something? I wonder which AI tool you were using and how it worked to produce this comment:
Thanks@StefanieSenger for reviewing this PR. I couldn’t find max_error_scorer in the _SCORERS dictionary — it looks like it was removed during deprecation.
Since you have just removedmax_error_scorer
from the_SCORERS
dict with your last commit89a8cf, it obviouslywas there and had not already been removed with the deprecation. Therefore, I find this comment confusing.
When in the process was it produced and by which tool? Thanks for your help.
natmokval commentedJul 14, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks@StefanieSenger for the comment. I used a tool called Natural Intelligence.
I understand this as removing Unfortunately, I did not find a way to show code changes from another PR directly in my comment, but you can see that I mean here: |
StefanieSenger commentedJul 14, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'm very sorry,@natmokval, my bad, I didn't even mean Thanks for sharing the tool you used. It helps me understand how these kind of llm-generated messages come into being. |
No problem@StefanieSenger, I understand. |
Thanks for the PR@natmokval. We usually tend to do this clean-up PRs closer to the release to prevent having to deal with painful conflicts when doing intermediate bug-fix releases. For instance, 1.8 is expected in November so there's a good chance that we release a 1.7.2 before that. I'd rather wait until we're close to 1.8, i.e. October or September, to merge this PR. I'm putting it into the 1.8 milestone so that we don't forget it. |
I wasn't aware of this either. Thank you,@jeremiedbb. |
Towards#29462
removed deprecated (renamed to
neg_max_error
) scoring=max_error