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
base: main
Are you sure you want to change the base?
Conversation
from 10 to 1 in 0.22
…cify initial values. All tests passed.
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 |
n_init
in cluster.KMeans
and cluster.k_means
n_init
in cluster.KMeans
and cluster.k_means
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 <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
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?