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

ENH: Use NumPy random generators #62

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

jhlegarreta
Copy link
Contributor

Use NumPy random generators as they are the preferred way to create random numbers since version 1.17.0.

Fix the seeds for the cases were they were not being fixed for the sake of reproducibility, except for test_query_eval.py where fixing the seed may make the while loop be infinite.

Documentation:
https://numpy.org/doc/1.17/reference/random/index.html

Use `NumPy` random generators as they are the preferred way to create
random numbers since version 1.17.0.

Fix the seeds for the cases were they were not being fixed for the sake
of reproducibility, except for `test_query_eval.py` where fixing the
seed may make the `while` loop be infinite.

Documentation:
https://numpy.org/doc/1.17/reference/random/index.html
@demianw demianw merged commit 93ab73f into demianw:master Dec 6, 2024
3 of 9 checks passed
@jhlegarreta jhlegarreta deleted the UseNumPyRandomGenerator branch December 6, 2024 12:49
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