mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Add a visual regression test
This commit is contained in:
@@ -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