diff --git a/optdash/frontend/src/utils/fetch-data.tsx b/optdash/frontend/src/utils/fetch-data.tsx index 7ba8626..9614d0a 100644 --- a/optdash/frontend/src/utils/fetch-data.tsx +++ b/optdash/frontend/src/utils/fetch-data.tsx @@ -1,6 +1,6 @@ function fetch_data(base_uri: string, query_params: string | string[][], data_setter: (x: any) => void, key: string = "") { let qs = new URLSearchParams(query_params); - let uri = encodeURI(base_uri + "?" + qs.toString()); + let uri = base_uri + "?" + qs.toString(); console.log("Fetching " + uri); fetch(uri) .then(res => res.json()) diff --git a/optdash/server.py b/optdash/server.py index 67a630f..95b4c2c 100644 --- a/optdash/server.py +++ b/optdash/server.py @@ -81,7 +81,7 @@ def get_contents(self) -> Tuple[int, Dict[str, str], Optional[bytes]]: } for study in sorted( studies, key=lambda s: ( - s.datetime_start if s.datetime_start is None else datetime.now() + s.datetime_start if s.datetime_start is not None else datetime.now() ) ) ] diff --git a/optdash/study.py b/optdash/study.py index 8cecc4a..468afa7 100644 --- a/optdash/study.py +++ b/optdash/study.py @@ -15,6 +15,7 @@ def __init__(self, study: optuna.Study) -> None: self.best_trial = study.best_trial self.best_params = study.best_params self.best_value = study.best_value + self._is_multi_objective = study._is_multi_objective self.trials = study.get_trials(deepcopy=False) def get_trials(self, deepcopy: bool = True) -> List[optuna.trial.FrozenTrial]: