rust-kmedoids icon indicating copy to clipboard operation
rust-kmedoids copied to clipboard

How to achieve sample weighting?

Open jjyyxx opened this issue 1 year ago • 6 comments

Thanks for this awesome library. It's fast, powerful, and has already helped me a lot.

The sklearn KMeans algorithm has a optional sample_weight option, specifying weights for each observation. I'm wondering if this functionality is available in your library as well, e.g., by passing some sort of weighted dissimilarities? Or fork this crate and extend an algorithm?

P.S.: Currently, I'm not involved in clustering research; I'm simply using it for my purposes. Hence, I'm uncertain if weighting is even well-defined for k-medoids algorithms. So, apologize for any disturbance.

jjyyxx avatar Jul 16 '23 03:07 jjyyxx