From bf8308323668e578e8b45b1ddc1250c4a871b727 Mon Sep 17 00:00:00 2001 From: Hiroki Takizawa Date: Thu, 30 Mar 2023 18:51:46 +0900 Subject: [PATCH] Update studies.py Co-authored-by: Toshihiko Yanase --- studies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/studies.py b/studies.py index 7be019569..069c3e084 100644 --- a/studies.py +++ b/studies.py @@ -337,9 +337,9 @@ def objective_timeline(trial: optuna.Trial) -> float: storage=storage, ) - study.enqueue_trial({"x": 0.3}) - study.enqueue_trial({"x": 0.9}) - study.enqueue_trial({"x": 0.5}) + study.enqueue_trial({"x": 0.3}) # Add a COMPLETE trial. + study.enqueue_trial({"x": 0.9}) # Add a FAIL trial. + study.enqueue_trial({"x": 0.5}) # Add a PRUNED trial. study.optimize(objective_timeline, n_trials=50, n_jobs=2, catch=(ValueError,)) studies.append((study.study_name, study))