Skip to content

Commit

Permalink
Merge pull request optuna#4950 from not522/faster-ci
Browse files Browse the repository at this point in the history
Reduce `n_trials` in `test_combination_of_different_distributions_objective`
  • Loading branch information
c-bata authored Sep 29, 2023
2 parents ce84a78 + 70e99ea commit 83f3cbf
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 83f3cbf

Please sign in to comment.