Skip to content

Commit

Permalink
Update studies.py
Browse files Browse the repository at this point in the history
Co-authored-by: Toshihiko Yanase <[email protected]>
  • Loading branch information
eukaryo and toshihikoyanase authored Mar 30, 2023
1 parent bf83083 commit 2dd2ed1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ def objective_timeline(trial: optuna.Trial) -> float:
),
storage=storage,
)
study.enqueue_trial({"x": 0.9})
study.enqueue_trial({"x": 0.5})
study.enqueue_trial({"x": 0.3})
study.enqueue_trial({"x": 0.9}) # Add a FAIL trial.
study.enqueue_trial({"x": 0.5}) # Add a PRUNED trial.
study.enqueue_trial({"x": 0.3}) # Add a COMPLETE trial.
study.optimize(objective_timeline, n_trials=50, n_jobs=2, catch=(ValueError,))
studies.append((study.study_name, study))

Expand Down

0 comments on commit 2dd2ed1

Please sign in to comment.