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

tests: Seed optuna samplers #2875

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

jvesely
Copy link
Collaborator

@jvesely jvesely commented Jan 4, 2024

Replacing sampler._rng, as done in PECOptimizationFunction, only works for optuna.RandomSampler.

…ruct optuna study

They currently refer to the same object but 'opt_func' was passed explicitly
to the '_fit_optuna' method and can theoretically be different.

Signed-off-by: Jan Vesely <[email protected]>
…er instances

The test is using instantiated samplers so it needs to provide fixed
seeds to guarantee deterministic behaviour.
Passes 100 iterations of
test_parameter_optimization_ddm[LLVM-optuna_cmaes_sampler] without
failures.

Bug: PrincetonUniversity#2874
Signed-off-by: Jan Vesely <[email protected]>
Copy link

github-actions bot commented Jan 4, 2024

This PR causes the following changes to the html docs (ubuntu-latest-3.11-x64):

No differences!

...

See CI logs for the full diff.

@jvesely
Copy link
Collaborator Author

jvesely commented Jan 4, 2024

cc @davidt0x

@jvesely jvesely merged commit 1612d43 into PrincetonUniversity:devel Jan 4, 2024
32 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.

1 participant