From 71d80bb100ef7f827dfb243e1121ca260b3d2b30 Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 17 Feb 2023 22:51:51 +0900 Subject: [PATCH] Add a visual regression test --- visual_regression_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/visual_regression_test.py b/visual_regression_test.py index 71e85b3c..50e52703 100644 --- a/visual_regression_test.py +++ b/visual_regression_test.py @@ -48,6 +48,11 @@ def create_dummy_storage() -> optuna.storages.InMemoryStorage: study.optimize(objective_single, n_trials=50) + # A single objective study with a single trial + # Refs: https://github.com/optuna/optuna-dashboard/issues/401 + study = optuna.create_study(study_name="single-trial", storage=storage, sampler=sampler) + study.optimize(objective_single, n_trials=1) + # Single-objective study with 1 parameter study = optuna.create_study( study_name="single-1-param", storage=storage, direction="maximize", sampler=sampler