skmeans
skmeans copied to clipboard
Pass in a random value seed to cluster initialization functions
I'm using this library in a context where I need the results to be deterministic. Would it be possible to provide the option to pass a seed into the cluster initialization functions?
I was thinking an optional argument could be passed into the skmeans function called seed and that would be passed on to the kmpp and kmrand .
I am able to implement this functionality, I just want to make sure that this is behavior that library owners want.
Thanks!
Actually looking a little more closely, I think we would have to allow a full random number generator into the skmeans function, not just the seed.
Hi @tessbianchi If you want to implement it, go for it! Make a pull request and I'll merge it into the master branch 👍
Woot! Thanks! I will get started!