-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG + 1] Make common metric tests look nicer #7620
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
[MRG + 1] Make common metric tests look nicer #7620
Conversation
* Change the tests to yield after performing the _named_check. * Tests affected: -test_averaging_multiclass -test_averaging_multilabel -test_averaging_multilabel_all_zeroes -test_averaging_multilabel_all_ones -test_sample_weight_invariance * File updated: sklearn/metrics/tests/test_common.py
fbf86be
to
fac2708
Compare
Looks good so far but I think you missed some yields. |
@amueller I left them intentionally since they already have clean and nice looking output. What say ? |
ok :) |
Tested locally. LGTM. Thanks :) |
@amueller Thanks. On a side note, what is the meaning of [MRG + 1] ? |
http://scikit-learn.org/dev/developers/contributing.html#contributing-pull-requests |
@jnothman I changed the title of PR to +2 assuming RPGOne is a core developer and that he forgot to change the title. Not sure if he is a core developer. |
@aashil no he is spamming and / or a bot. |
Can one more core developer please review this PR ? Thanks. |
* Change the tests to yield after performing the _named_check. * Tests affected: -test_averaging_multiclass -test_averaging_multilabel -test_averaging_multilabel_all_zeroes -test_averaging_multilabel_all_ones -test_sample_weight_invariance * File updated: sklearn/metrics/tests/test_common.py
* Change the tests to yield after performing the _named_check. * Tests affected: -test_averaging_multiclass -test_averaging_multilabel -test_averaging_multilabel_all_zeroes -test_averaging_multilabel_all_ones -test_sample_weight_invariance * File updated: sklearn/metrics/tests/test_common.py
* Change the tests to yield after performing the _named_check. * Tests affected: -test_averaging_multiclass -test_averaging_multilabel -test_averaging_multilabel_all_zeroes -test_averaging_multilabel_all_ones -test_sample_weight_invariance * File updated: sklearn/metrics/tests/test_common.py
* Change the tests to yield after performing the _named_check. * Tests affected: -test_averaging_multiclass -test_averaging_multilabel -test_averaging_multilabel_all_zeroes -test_averaging_multilabel_all_ones -test_sample_weight_invariance * File updated: sklearn/metrics/tests/test_common.py
Reference Issue
Fixes #7369
What does this implement/fix? Explain your changes.
Any other comments?
Tests affected:
-test_averaging_multiclass
-test_averaging_multilabel
-test_averaging_multilabel_all_zeroes
-test_averaging_multilabel_all_ones
-test_sample_weight_invariance
File updated: sklearn/metrics/tests/test_common.py