Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update make_scorer docs. Missing information after #9521 PR. #12848

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sklearn/metrics/scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ def make_scorer(score_func, greater_is_better=True, needs_proba=False,
Whether score_func requires predict_proba to get probability estimates
out of a classifier.

When using the binary classification for the ``score_func function``,
Copy link
Member

@qinhanmin2014 qinhanmin2014 Dec 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If needs_proba = True, XXX

a array of ground truth (correct) labels probability estimates is
passed.

needs_threshold : boolean, default=False
Whether score_func takes a continuous decision certainty.
This only works for binary classification using estimators that
Expand Down