-
Notifications
You must be signed in to change notification settings - Fork 73
update n_init for kmeans #153
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
md-shafiul-alam
commented
Aug 8, 2024
•
edited
Loading
edited
- For kmeans++, the default n_init=1 https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/cluster/_kmeans.py#L346. Probably makes sense to benchmark the default behavior.
But why? KMeans inertia is sensitive to normalization |
Only reason is that stock scikit learn does not have any option for normalization. |
|
I understand, but is there a specific reason we normalize by default? To me seems like a redundant step. |
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.
data:preprocessing_kwargs:normalize
is not argument of an estimatorI understand, but is there a specific reason we normalize by default? To me seems like a redundant step.
Normalization is required for algorithms sensitive to it for better quality metrics and representation of user cases.
@Alexsandruss Do you suggest any more changes? |