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

remove random.seed in favor of np.random.seed #1391

Merged
merged 3 commits into from
May 7, 2024

Conversation

PaulJonasJost
Copy link
Collaborator

In some Jupyter notebooks, random.seed was used. This however guarantees no reproducibility as the start points are generated with numpy.

@codecov-commenter
Copy link

codecov-commenter commented May 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.48%. Comparing base (80ae7fa) to head (7fa35ed).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1391      +/-   ##
===========================================
- Coverage    84.53%   84.48%   -0.05%     
===========================================
  Files          157      157              
  Lines        12955    12955              
===========================================
- Hits         10951    10945       -6     
- Misses        2004     2010       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

🙈

import numpy as np, then 👍

@dweindl dweindl changed the title remove random.see in favor of np.random.seed remove random.seed in favor of np.random.seed May 5, 2024
Copy link
Contributor

@Doresic Doresic left a comment

Choose a reason for hiding this comment

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

Nice catch :D

@PaulJonasJost PaulJonasJost merged commit cf3cbc5 into develop May 7, 2024
18 checks passed
@PaulJonasJost PaulJonasJost deleted the random_seed_vs_np_random_seed branch May 7, 2024 07:49
This was referenced May 27, 2024
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.

4 participants