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

random seed #489

Open
kbrulois opened this issue Feb 28, 2025 · 4 comments
Open

random seed #489

kbrulois opened this issue Feb 28, 2025 · 4 comments

Comments

@kbrulois
Copy link

Wondering what's the best way to get the random seed integer into the pdb file names?
Thanks

@DimaMolod
Copy link
Collaborator

Hi, you can set up random_seed with --random_seed flag then each model will have individual random seed
There is no direct way of changing the pdb file names, but you can either add a print line there or calculate it manually. The default value for random seed is 42.

@kbrulois
Copy link
Author

Hi, thanks.
A follow up question. If I run num_predictions_per_model=2 with random_seed=42, I'd get 10 model seeds: 420-429.
Then if I wanted to reproduce the model for seed 426 (or get as close to it as possible) but with num_predictions_per_model=1 instead of 2, I would have to set random_seed=85, to have one of the 5 models be run with seed 426.

Is my understanding correct?

@DimaMolod
Copy link
Collaborator

Actually, we have just noticed that random seed is determined in AP and this is not an expected behaviour, thanks for bringing this up! I will fix that and add a logging about the random seed later today, so maybe you could just wait a bit.

@DimaMolod
Copy link
Collaborator

Hi @kbrulois
I've just committed the fix, now random_seed is randomly generated depending on the backend in use and the value is reported in the logs. Please let me know if you have any issues/suggestions

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

2 participants