Skip to content

[MRG + 1] Make common metric tests look nicer - #7620

Merged
TomDLT merged 1 commit into
scikit-learn:masterfrom
aashil:dev-7369-common-metric-tests
Oct 13, 2016
Merged

TomDLT merged 1 commit into
scikit-learn:masterfrom
aashil:dev-7369-common-metric-tests

Conversation

@aashil

@aashil aashil commented Oct 9, 2016 •

Copy link
Copy Markdown

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

amueller commented Oct 9, 2016

Copy link
Copy Markdown
Member

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

@aashil

aashil commented Oct 9, 2016

Copy link
Copy Markdown
Author

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

@amueller

Copy link
Copy Markdown
Member

ok :)

@amueller

Copy link
Copy Markdown
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

aashil commented Oct 10, 2016

Copy link
Copy Markdown
Author

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

@amueller

amueller commented Oct 10, 2016 •

Copy link
Copy Markdown
Member

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

aashil commented Oct 11, 2016

Copy link
Copy Markdown
Author

@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
Copy Markdown
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

aashil commented Oct 12, 2016

Copy link
Copy Markdown
Author

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