-
-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
EHN Change default value of n_init
in cluster.KMeans
and cluster.k_means
#23038
Conversation
from 10 to 1 in 0.22
…cify initial values. All tests passed.
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.
I think we still need to address #9729 (comment) and motivate the change from 10 to 5.
Let's continue the discussion in #9729 before commiting too deeply into this |
Per discussion in #9729 (comment) I'll go ahead and proceed with introducing auto-resolution for |
I guess it's worth to apply the same pattern to MiniBatchKMeans |
Should we go ahead and complete this PR first and then open a separate one for |
I actually went ahead and extended it to |
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.
Many tests are failing because we turn future warnings into errors in the CI. For each of these you can either filter the warning or explicitly set n_init, whichever is more appropriate.
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
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.
The ci failures look like they are related to this PR.
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
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!
@jeremiedbb I let you check that your comments where addressed the way you intended before merging. |
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. Thanks @Micky774
Reference Issues/PRs
Fixes #9729
Resolves #11530 (stalled)
What does this implement/fix? Explain your changes.
Begins deprecation cycle for changing default value of
n_init
incluster.KMeans
andcluster.k_means
to 5.Any other comments?