Skip to content

Commit

Permalink
fix best trials
Browse files Browse the repository at this point in the history
  • Loading branch information
moririn2528 committed Sep 15, 2023
1 parent 76356eb commit 6a7e450
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions optuna_dashboard/ts/components/BestTrialsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,23 @@ export const BestTrialsCard: FC<{
header = `Best Trial (number=${bestTrial.number})`
content = (
<>
{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>
)}
{!studyDetail?.is_preferential &&
(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

0 comments on commit 6a7e450

Please sign in to comment.