Add a visual regression test

This commit is contained in:
c-bata
2023-02-17 22:51:51 +09:00
parent 75ac3eed93
commit 71d80bb100
+5
View File
@@ -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