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

FIX: reset random seed after setting random_state #331

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

nghi-truyen
Copy link
Member

No description provided.

@nghi-truyen nghi-truyen added the bug Something isn't working label Sep 23, 2024
@nghi-truyen nghi-truyen added this to the Release v1.1.0 milestone Sep 23, 2024
@nghi-truyen nghi-truyen linked an issue Sep 23, 2024 that may be closed by this pull request
Copy link
Member

@inoelloc inoelloc left a comment

Choose a reason for hiding this comment

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

Quel était l'impact de ne pas reset ?
Ca me fait penser que cette manière de gérer le random avec numpy est plus trop d'actualité. Dans l'absolu, il faudrait passer par un random generator: https://numpy.org/doc/stable/reference/random/generator.html. Ce qui permettrait de ne pas avoir un random state global. Ca risque de modifier pas mal de chose. Peut etre en faire une issue pour un prochain PR ;)

@nghi-truyen
Copy link
Member Author

nghi-truyen commented Sep 24, 2024

Quel était l'impact de ne pas reset ? Ca me fait penser que cette manière de gérer le random avec numpy est plus trop d'actualité. Dans l'absolu, il faudrait passer par un random generator: https://numpy.org/doc/stable/reference/random/generator.html. Ce qui permettrait de ne pas avoir un random state global. Ca risque de modifier pas mal de chose. Peut etre en faire une issue pour un prochain PR ;)

Oui oui, on peut changer le generator. Pour l'impact de ne pas reset, j'ai écrit dans #330 en fait ;)

@nghi-truyen nghi-truyen merged commit 5c7fb78 into DassHydro:main Sep 24, 2024
22 checks passed
@nghi-truyen nghi-truyen deleted the fix-reset-random-seed branch September 24, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: random state should be reset to None after being set in smash
2 participants