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

fixed random number generator for parallel processing in differential_evolution #213

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

JLX0
Copy link
Contributor

@JLX0 JLX0 commented Dec 13, 2024

Contributor Agreements

Please read the contributor agreements and if you agree, please click the checkbox below.

  • I agree to the contributor agreements.

Motivation of the changes

the random seeds might not be properly reset during parallel processing

Description of the changes

fixed random number generator for parallel processing in differential_evolution by using LazyRandomState and reseed_rng()

@JLX0 JLX0 changed the title fixed random number generator for parallel processing in differential evolution fixed random number generator for parallel processing in differential_evolution Dec 13, 2024
Copy link
Contributor

@nabenabe0928 nabenabe0928 left a comment

Choose a reason for hiding this comment

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

LGTM!

@nabenabe0928 nabenabe0928 merged commit f77efc6 into optuna:main Dec 17, 2024
4 checks passed
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