Skip to content

Commit

Permalink
Merge pull request #414 from c-bata/improve-human-in-the-loop-ui
Browse files Browse the repository at this point in the history
Minor improvements on human-in-the-loop UI
  • Loading branch information
c-bata authored Mar 14, 2023
2 parents 51f0ddd + cad8870 commit 2e0baba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 16 additions & 10 deletions optuna_dashboard/ts/components/BestTrialsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,22 @@ export const BestTrialsCard: FC<{
header = `Best Trial (number=${bestTrial.number})`
content = (
<>
<Typography
variant="h3"
sx={{
fontWeight: theme.typography.fontWeightBold,
marginBottom: theme.spacing(2),
}}
color="secondary"
>
{bestTrial.values}
</Typography>
{bestTrial.values === undefined || bestTrial.values.length === 1 ? (
<Typography
variant="h3"
sx={{
fontWeight: theme.typography.fontWeightBold,
marginBottom: theme.spacing(2),
}}
color="secondary"
>
{bestTrial.values}
</Typography>
) : (
<Typography>
Objective Values = [{bestTrial.values?.join(", ")}]
</Typography>
)}
<Typography>
Params = [
{bestTrial.params
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/TrialList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const TrialListDetail: FC<{

const params = trial.state === "Waiting" ? trial.fixed_params : trial.params
const info: [string, string | null | ReactNode][] = [
["Value", trial.values?.map((v) => v.toString()).join(" ") || "None"],
["Value", trial.values?.map((v) => v.toString()).join(", ") || "None"],
[
"Intermediate Values",
<Box>
Expand Down

0 comments on commit 2e0baba

Please sign in to comment.