Skip to content

Commit

Permalink
Reduce n_trials in test_combination_of_different_distributions_objective
Browse files Browse the repository at this point in the history
  • Loading branch information
not522 committed Sep 26, 2023
1 parent a1b43b2 commit 70e99ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/samplers_tests/test_samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,9 @@ def objective(trial: Trial) -> float:
sampler = sampler_class()

study = optuna.study.create_study(sampler=sampler)
study.optimize(objective, n_trials=10)
study.optimize(objective, n_trials=3)

assert len(study.trials) == 10
assert len(study.trials) == 3
assert all(t.state == TrialState.COMPLETE for t in study.trials)


Expand Down

0 comments on commit 70e99ea

Please sign in to comment.