-
Notifications
You must be signed in to change notification settings - Fork 37
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
Allow choosing the random seed (from python) #176
Comments
Hi @kno10 , this should be enabled in An important point to note is that although BanditPAM is a randomized algorithm, we have tuned the hyperparameters so that it almost always returns the exact same results as PAM; see Figure 1a in the full paper. So though you may run the algorithm with different seeds, almost always you will get the same result. There is the possibility of relaxing the requirement that BanditPAM returns the same result as PAM for an improvement in runtime, but that is currently beyond the scope of this package. Lastly, I should note that the package currently supports multithreading; to ensure exact reproducibility of results from run to run, it's necessary to set the number of threads to
|
The algorithm is introduced as randomized, but it appears to return the same results when run multiple times.
As far as I can tell, this is because the random generator is not seeded.
At least I could not find an invocation of
arma::set_seed_random
.I would prefer a parameter that allows the (python-) user to set the seed in a reproducible way, i.e., add an option to the function call that is then used to seed the RNG; if not set it could default to seed using the current time.
P.S. Sorry for spamming you with so many issue tickets, but my impression is that this may suit your workflow and may help you keep track of such small TODOs.
The text was updated successfully, but these errors were encountered: