Skip to content
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+2] Invariance tests for clustering metrics #10828

Merged
merged 46 commits into from Mar 18, 2018

Conversation

glemaitre
Copy link
Member

closes #8135
closes #8102

Take over #8135 by using pytest feature to simplify the tests.
To be discussed:

  • testing for infinite or nan input
  • testing for single sample

@jnothman Let me know if we address the above 2 points or this is not necessary.

@jnothman
Copy link
Member

I do like the idea of those tests, but I don't mind them being added after this is merged.

@@ -492,3 +492,6 @@ Changes to estimator checks
- Add test :func:`estimator_checks.check_methods_subset_invariance` to check
that estimators methods are invariant if applied to a data subset.
:issue:`10420` by :user:`Jonathan Ohayon <Johayon>`

- Add invariance tests for clustering metrics. :issue:`8102` by :user:`Ankita
Sinha <anki08>` and `Guillaume Lemaitre <glemaitre>`.
Copy link
Member

@jnothman jnothman Mar 18, 2018

Choose a reason for hiding this comment

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

You either need :user: or you need to add yourself to _contributors.rst and use `Guillaume Lemaitre`_

@jnothman jnothman changed the title [MRG] Invariance tests for clustering metrics [MRG+2] Invariance tests for clustering metrics Mar 18, 2018
@glemaitre
Copy link
Member Author

I would merge for now to not block the other PR. I will try to submit a PR once I fixed the SimpleImputer.
I let you merge :)

@jnothman jnothman merged commit 413e035 into scikit-learn:master Mar 18, 2018
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.

Invariance tests for clustering metrics
4 participants