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

Skip to content

[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

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

aashil
Copy link
Contributor

@aashil aashil commented Oct 9, 2016

Reference Issue

Fixes #7369

What does this implement/fix? Explain your changes.

  • Display user-friendly test output for common metrics test.
  • Change the tests to yield after performing the _named_check.

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

* 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
@aashil aashil force-pushed the dev-7369-common-metric-tests branch from fbf86be to fac2708 Compare October 9, 2016 08:17
@amueller
Copy link
Member

amueller commented Oct 9, 2016

Looks good so far but I think you missed some yields.

@aashil
Copy link
Contributor Author

aashil commented Oct 9, 2016

@amueller I left them intentionally since they already have clean and nice looking output. What say ?

@amueller
Copy link
Member

ok :)

@amueller
Copy link
Member

Tested locally. LGTM. Thanks :)

@amueller amueller changed the title [MRG] Make common metric tests look nicer [MRG + 1] Make common metric tests look nicer Oct 10, 2016
@aashil
Copy link
Contributor Author

aashil commented Oct 10, 2016

@amueller Thanks. On a side note, what is the meaning of [MRG + 1] ?

@amueller
Copy link
Member

amueller commented Oct 10, 2016

http://scikit-learn.org/dev/developers/contributing.html#contributing-pull-requests
MRG stands for "this is deemed ready for merge by the author, please review"
+ 1 means your pull request has been approved by one core developer (me).
You need two approvals for your pull request to be merged.

@aashil aashil changed the title [MRG + 1] Make common metric tests look nicer [MRG + 2] Make common metric tests look nicer Oct 10, 2016
@aashil
Copy link
Contributor Author

aashil commented Oct 11, 2016

@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.

@amueller
Copy link
Member

@aashil no he is spamming and / or a bot.

@amueller amueller changed the title [MRG + 2] Make common metric tests look nicer [MRG + 1] Make common metric tests look nicer Oct 11, 2016
@aashil
Copy link
Contributor Author

aashil commented Oct 12, 2016

Can one more core developer please review this PR ? Thanks.

@TomDLT TomDLT merged commit 329b7ee into scikit-learn:master Oct 13, 2016
amueller pushed a commit to amueller/scikit-learn that referenced this pull request Oct 14, 2016
* 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
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
* 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
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
* 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
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
* 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
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.

make common metric tests look nicer
4 participants