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

add random seed to all pymc examples for reproducible results #149

Merged
merged 3 commits into from
Jan 5, 2023

Conversation

drbenvincent
Copy link
Collaborator

This closes #139. By adding a random seed, the results are reproducible. Users won't get confused if their results differ slightly from what is in the examples. It will also stop the results from changing slightly on each re-execution of the example notebooks.

I also re-ran the generate_plots notebook, so we have updated figures for the README.

I did not add random seeds to the tests though - I felt it unnecessary as we aren't testing for exact results at this point.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@drbenvincent drbenvincent removed the request for review from juanitorduz January 5, 2023 19:00
@drbenvincent drbenvincent merged commit 505cfe0 into main Jan 5, 2023
@drbenvincent drbenvincent deleted the random-seed branch January 5, 2023 19:00
@drbenvincent drbenvincent added the documentation Improvements or additions to documentation label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a random seed for pymc sampling
1 participant