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

[Tiny PR] [Fix] Use random number generator in weighted mode of select #316

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

alexhernandezgarcia
Copy link
Owner

Unless I am missing something, using np.random.choice() instead of rng.choice() is contributing to random differences across runs, which has an impact on reproducibility (and debugging).

Copy link
Collaborator

@carriepl carriepl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks a lot!

@carriepl carriepl merged commit 5d4b45e into main Jun 6, 2024
1 check passed
@carriepl carriepl deleted the fix-select-rng branch June 6, 2024 12:57
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