joshlk / k-means-constrained

K-Means clustering - constrained with minimum and maximum cluster size. Documentation: https://joshlk.github.io/k-means-constrained
https://github.com/joshlk/k-means-constrained
BSD 3-Clause "New" or "Revised" License
192 stars 43 forks source link

Weighting observations #49

Closed RobShaw77 closed 1 year ago

RobShaw77 commented 1 year ago

As far as I can tell, it is not currently possible to give weights to observations. One obvious workaround is to duplicate points but this would be very inefficient. Has this been considered as a future development?

In my example, I have a series of places that I'm clustered and would like to take account of their population in the max min cluster sizes.

Thanks Rob

joshlk commented 1 year ago

Hi, thanks for your interest. Have a look at this thread: https://github.com/joshlk/k-means-constrained/issues/24. There is no currently no work being done on this, but I am happy to take contributions to the repo :)