Skip to content

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