mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-28 13:11:26 +08:00
Merge pull request #571 from lucasmrdt/main
Fix the bug while renaming a study with maximize direction
This commit is contained in:
1 file changed
+3
-1
@@ -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