mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-12 12:40:33 +08:00
Fix check for single-objective study
This commit is contained in:
@@ -186,7 +186,7 @@ def create_app(
|
||||
trials = get_trials(storage, study_id)
|
||||
|
||||
# TODO(c-bata): Cache best_trials
|
||||
if summary.directions == 1:
|
||||
if len(summary.directions) == 1:
|
||||
best_trials = [storage.get_best_trial(study_id)]
|
||||
else:
|
||||
best_trials = get_pareto_front_trials(trials=trials, directions=summary.directions)
|
||||
|
||||
Reference in New Issue
Block a user