-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC make_scorer now requires score function to accpet 1d y_pred when needs_proba is True #14318
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…needs_proba is True
Co-Authored-By: Andreas Schuderer <schuderer@gmx.de>
thanks @schuderer |
Why not both? It does not seem to be an overkilled to mention in the change of behavior, isn't it? |
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.
A couple of nitpicks, feel free to accept them or not.
LGTM
Co-Authored-By: Guillaume Lemaitre <g.lemaitre58@gmail.com>
thanks for the review, I've updated what's new. |
Thanks @qinhanmin2014 |
…needs_proba is True (scikit-learn#14318)
Closes #12848
In #9521, we change the behavior of make_scorer when needs_proba is True and y_true is binary. Previously, we requires score function to accept 2d y_pred (i.e., the output of predict_proba), now we require the score function to accpet 1d y_pred (probability of the positive class).
I think the change is trivial (maybe more reasonable?) and it has been a long time, so I choose to update the doc instead of mention it in what's new.