8000 [MRG+1] Changed the metric average types by HashCode55 · Pull Request #6908 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG+1] Changed the metric average types #6908

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 3 commits into from
Jun 22, 2016
Merged

[MRG+1] Changed the metric average types #6908

merged 3 commits into from
Jun 22, 2016

Conversation

HashCode55
Copy link
Contributor

Fixes #6847

Changed the example in examples/model_selection/grid_search_digits.py as the dataset is balanced....
And same goes for twenty_newsgroups.rst example, I cross-checked and the dataset was balanced so I changed the average to macro. Fixes 2 more files.
Being this my first PR to scikit-learn, I'm not sure I did it completely or not, if not I'd be happy to make any other changes as well :)

@@ -469,7 +469,7 @@ def test_precision_recall_f1_score_multiclass_pos_label_none():
# compute scores with default labels introspection
p, r, f, s = precision_recall_fscore_support(y_true, y_pred,
pos_label=None,
average='weighted')
average='binary')
Copy link
Member

Choose a reason for hiding this comment

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

This one is intentionally testing the case where precision_recall_fscore_support should treat a binary problem as if it's multiclass. So this should be weighted or macro, not binary.

@jnothman
Copy link
Member

Otherwise, LGTM... although you should have used a more meaningful commit message.

@jnothman
Copy link
Member

LGTM.

@jnothman jnothman changed the title Changed the metric average types [MRG+1] Changed the metric average types Jun 19, 2016
@GaelVaroquaux
Copy link
Member

LGTM.

It annoys me that Appveyor is failing, but I think that it's unrelated, so I am merging.

@GaelVaroquaux GaelVaroquaux merged commit 94faf0e into scikit-learn:master Jun 22, 2016
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
0