Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion optdash/frontend/src/utils/fetch-data.tsx
Original file line number Diff line number Diff line change
@@ -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())
Expand Down
2 changes: 1 addition & 1 deletion optdash/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
)
]
Expand Down
1 change: 1 addition & 0 deletions optdash/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down