mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Merge pull request #571 from lucasmrdt/main
Fix the bug while renaming a study with maximize direction
This commit is contained in:
@@ -140,7 +140,9 @@ def create_app(
|
||||
return {"reason": f"study_id={study_id} is not found"}
|
||||
|
||||
try:
|
||||
dst_study = optuna.create_study(storage=storage, study_name=dst_study_name)
|
||||
dst_study = optuna.create_study(
|
||||
storage=storage, study_name=dst_study_name, directions=src_study.directions
|
||||
)
|
||||
dst_study.add_trials(src_study.get_trials(deepcopy=False))
|
||||
except DuplicatedStudyError:
|
||||
response.status = 400 # Bad request
|
||||
|
||||
Reference in New Issue
Block a user