Repository navigation
Remove unused scorers - #13318
Merged
Merged
Remove unused scorers#13318
Conversation
agramfort
reviewed
Feb 27, 2019
| average_precision_scorer = make_scorer(average_precision_score, | ||
| needs_threshold=True) | ||
| precision_scorer = make_scorer(precision_score) | ||
| recall_scorer = make_scorer(recall_score) |
Member
There was a problem hiding this comment.
I would rather add them to SCORERS as they are legit scorers
Contributor
Author
There was a problem hiding this comment.
This commit has removed them in favor of ['macro', 'micro', 'samples', 'weighted'] versions. So, they are already there.
Member
|
I guess they're already there, see scikit-learn/sklearn/metrics/scorer.py Lines 536 to 542 in 9d21197 |
qinhanmin2014
approved these changes
Feb 28, 2019
Member
|
We create them at the bottom of the file and we test for their existence. I
can't see the diff on the Metro but this PR is probably correct.
|
Member
|
alright then ! |
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
This reverts commit d536fcb.
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
This reverts commit d536fcb.
koenvandevelde
pushed a commit
to koenvandevelde/scikit-learn
that referenced
this pull request
Jul 12, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes.
It seems that these scorers are defined but they are not used somewhere, no?