Skip to content

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

Merged
merged 5 commits into from
Jul 19, 2019

Conversation

qinhanmin2014
Copy link
Member

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.

@qinhanmin2014 qinhanmin2014 added this to the 0.21.3 milestone Jul 13, 2019
Co-Authored-By: Andreas Schuderer <schuderer@gmx.de>
@qinhanmin2014
Copy link
Member Author

thanks @schuderer

@glemaitre
Copy link
Member

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.

Why not both? It does not seem to be an overkilled to mention in the change of behavior, isn't it?

Copy link
Member

@glemaitre glemaitre left a 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

qinhanmin2014 and others added 2 commits July 19, 2019 10:20
Co-Authored-By: Guillaume Lemaitre <g.lemaitre58@gmail.com>
@qinhanmin2014
Copy link
Member Author

Why not both? It does not seem to be an overkilled to mention in the change of behavior, isn't it?

thanks for the review, I've updated what's new.

@glemaitre glemaitre merged commit 948a825 into scikit-learn:master Jul 19, 2019
@glemaitre
Copy link
Member

Thanks @qinhanmin2014

@qinhanmin2014 qinhanmin2014 deleted the make_scorer-doc branch July 19, 2019 09:41
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Jul 24, 2019
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