mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Merge pull request #619 from moririn2528/best-trials
Fix best trials in analytics when preference feedback mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user