Skip to content

[MRG+1] break the tie in Meanshift in case cluster intensities are the same #11901

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 7 commits into from
Sep 5, 2018

Conversation

adrinjalali
Copy link
Member

See MacPython/scikit-learn-wheels#7 (comment)

MeanShift is undeterministic if intensities of clusters are the same. This uses the cluster center values to sort in case of a tie.

@jnothman
Copy link
Member

jnothman commented Aug 23, 2018 via email

@adrinjalali
Copy link
Member Author

yeah, I added a test for that case. Which is basically the example which was failing.

@jnothman
Copy link
Member

Please add an entry to the change log at doc/whats_new/v0.20.rst. Like the other entries there, please reference this pull request with :issue: and credit yourself (and other contributors if applicable) with :user: please also add MeanShift to the changed models section up top

@amueller
Copy link
Member

This doesn't lead to a failure right now so isn't critical, right?

@jnothman
Copy link
Member

Well it was leading to a failure. Did they change?

@jnothman
Copy link
Member

jnothman commented Aug 24, 2018 via email

@adrinjalali adrinjalali changed the title break the tie in Meanshift in case cluster intensities are the same [MRG+1] break the tie in Meanshift in case cluster intensities are the same Aug 28, 2018
@ogrisel
Copy link
Member

ogrisel commented Sep 5, 2018

LGTM as well, indeed it's useful to merge for 0.20 because of #12014.

@ogrisel ogrisel merged commit a9c6ad9 into scikit-learn:master Sep 5, 2018
@adrinjalali adrinjalali deleted the meanshift branch September 5, 2018 19:30
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Sep 6, 2018
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Sep 17, 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.

4 participants