Skip to content

Feature Request: Allow deterministic random seed value on initialization. #19

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

Open
c2wei opened this issue Aug 13, 2021 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@c2wei
Copy link

c2wei commented Aug 13, 2021

Hi,

Currently the initialization of Clusters slice randomly seeds their initial positions.

I would like to request for a new initialization method with option to specify the seed value in order to obtain a deterministic result from the Partition function.

Thank you.

@marco-m
Copy link

marco-m commented Feb 11, 2022

Hello @muesli, would you consider a PR adding this feature?

My use case: when developing a generative drawing, sometimes I fix the seed in order to be able to focus on the non-random parameters. But when using kmeans, this technique doesn't work :-)

@muesli
Copy link
Owner

muesli commented Feb 11, 2022

@marco-m Absolutely, PR would be welcome!

@marco-m
Copy link

marco-m commented Feb 13, 2022

It turns out it was more complicated than I was expecting and involved also muesli/clusters, not only this repo.
I submitted two PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants