Skip to content

Additional seeding for reproducibility#173

Merged
kathyxchen merged 1 commit intoFunctionLab:masterfrom
rfriedman22:random-seed-bugfix
Aug 31, 2021
Merged

Additional seeding for reproducibility#173
kathyxchen merged 1 commit intoFunctionLab:masterfrom
rfriedman22:random-seed-bugfix

Conversation

@rfriedman22
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Fixes issues with reproducibility when random seed is provided as discussed in the Google group

What does this implement/fix? Explain your changes.

Seed the Python and Numpy random number generator with the same seed used for Torch, and set torch to use deterministic algorithms.

What testing did you do to verify the changes in this PR?

Added these lines to a CLI script and ran Selene twice with the same input and same seed, and verified the output of the training loss and validation performance metrics was identical.

@kathyxchen
Copy link
Copy Markdown
Collaborator

LGTM, thank you @rfriedman22 for your work :)

@kathyxchen kathyxchen merged commit a246547 into FunctionLab:master Aug 31, 2021
@rfriedman22 rfriedman22 deleted the random-seed-bugfix branch September 9, 2021 21:34
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

Successfully merging this pull request may close these issues.

2 participants