Skip to content

DOC make_scorer now requires score function to accpet 1d y_pred when needs_proba is True#14318

Merged
glemaitre merged 5 commits intoscikit-learn:masterfrom
qinhanmin2014:make_scorer-doc
Jul 19, 2019
Merged

DOC make_scorer now requires score function to accpet 1d y_pred when needs_proba is True#14318
glemaitre merged 5 commits intoscikit-learn:masterfrom
qinhanmin2014:make_scorer-doc

Conversation

@qinhanmin2014
Copy link
Copy Markdown
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
Copy Markdown
Member Author

thanks @schuderer

@glemaitre
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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