Skip to content
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

Weighted clusters #39

Open
jeancroy opened this issue Dec 11, 2024 · 0 comments
Open

Weighted clusters #39

jeancroy opened this issue Dec 11, 2024 · 0 comments

Comments

@jeancroy
Copy link

jeancroy commented Dec 11, 2024

The CKmean algorithm support weighted cluster.

  • I'm interested in that functionality and will probably make a fork.

  • The only difference seems to be at the level of dissimilarity evaluation. (And a few summaries, like cumulative sum of weights)

  • They do have test for that case that I can port to your format.

  • Would you be interested in that going back to main branch ? If so do you have requests / pointers ?

  • Api would probably be a weight array that can be empty or omitted to collapse to the current api.

Example use:

I'm interested in compressing an histogram, where x would be bin positions and w would be bins heights.
A naive approach would be to repeat the x value a number of time proportional to w,
but I work with probability so I don't have integer count.
Also this just increase time and memory complexity for nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant