From 2dd2ed190f56db35c324e793d07989ac5493c0cd Mon Sep 17 00:00:00 2001 From: Hiroki Takizawa Date: Thu, 30 Mar 2023 18:51:53 +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 069c3e084..4d233f464 100644 --- a/studies.py +++ b/studies.py @@ -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))