mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
@@ -254,7 +254,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
|
||||
study_id = storage.create_new_study(study_name)
|
||||
except DuplicatedStudyError:
|
||||
response.status = 400 # Bad request
|
||||
return {"reason": f"'{study_name}' is already exists"}
|
||||
return {"reason": f"'{study_name}' already exists"}
|
||||
|
||||
storage.set_study_directions(
|
||||
study_id,
|
||||
@@ -304,7 +304,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
|
||||
intersection,
|
||||
union,
|
||||
union_user_attrs,
|
||||
has_intermeridate_values,
|
||||
has_intermediate_values,
|
||||
) = get_cached_extra_study_property(study_id, trials)
|
||||
return serialize_study_detail(
|
||||
summary,
|
||||
@@ -312,7 +312,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
|
||||
intersection,
|
||||
union,
|
||||
union_user_attrs,
|
||||
has_intermeridate_values,
|
||||
has_intermediate_values,
|
||||
)
|
||||
|
||||
@app.get("/api/studies/<study_id:int>/param_importances")
|
||||
|
||||
Reference in New Issue
Block a user