mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-29 13:20:48 +08:00
Add a visual regression test
This commit is contained in:
1 parent
75ac3eed93
commit
71d80bb100
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user