mlampros / ClusterR

Gaussian mixture models, k-means, mini-batch-kmeans and k-medoids clustering
https://mlampros.github.io/ClusterR/
84 stars 29 forks source link

[Feature Request] Support Constrained K-Means #51

Open hsbadr opened 1 year ago

hsbadr commented 1 year ago

It would be nice to control the minimum cluster size.

mlampros commented 1 year ago

I think the conclust R package offers a constrained k-means algorithm but from what I see the parameter setting of the "ckmeans" function differs compared to the Python implementation which allows to use a "size_min" and "size_max" parameter. This requires to go through papers and it's kind of time consuming. Feel free to make a PR if you intend to create the code base.