-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Make algorithm='auto' default to using 'full' instead of 'elkan' #21735
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick PR, overall it looks good to me. Just a few comments:
Thanks for the review @ogrisel , I'll take care of this today. |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Only a small nitpick.
I merge my small nitpick to go ahead. |
Thanks @ageron |
…cikit-learn#21735) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
…cikit-learn#21735) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs
Fixes #21729
What does this implement/fix? Explain your changes.
In
sklearn.cluster.KMeans
, the defaultalgorithm="auto"
now uses the full classical EM-style algorithm (as withalgorithm="full"
) instead of Elkan's algorithm, as the former is often faster in practice.Any other comments?
This does not affect the result of clustering, and the default parameter remains
"auto"
, so this should only affect performance.