Skip to content

Commit

Permalink
Merge pull request #726 from not522/intermediate-values-layout-shift
Browse files Browse the repository at this point in the history
Prevent layout shift with intermediate values plot
  • Loading branch information
c-bata authored Dec 7, 2023
2 parents 1282eb2 + 885da8f commit e25d42e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions optuna_dashboard/ts/components/StudyHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,6 @@ export const StudyHistory: FC<{ studyId: number }> = ({ studyId }) => {
</CardContent>
</Card>
<Grid2 container spacing={2} sx={{ padding: theme.spacing(0, 2) }}>
{studyDetail !== null &&
studyDetail.directions.length === 1 &&
studyDetail.has_intermediate_values ? (
<Grid2 xs={6}>
<GraphIntermediateValues
trials={trials}
includePruned={includePruned}
logScale={logScale}
/>
</Grid2>
) : null}
<Grid2 xs={6}>
<GraphHyperparameterImportance
studyId={studyId}
Expand Down Expand Up @@ -170,6 +159,17 @@ export const StudyHistory: FC<{ studyId: number }> = ({ studyId }) => {
</CardContent>
</Card>
</Grid2>
{studyDetail !== null &&
studyDetail.directions.length === 1 &&
studyDetail.has_intermediate_values ? (
<Grid2 xs={6}>
<GraphIntermediateValues
trials={trials}
includePruned={includePruned}
logScale={logScale}
/>
</Grid2>
) : null}
</Grid2>

{artifactEnabled && studyDetail !== null && (
Expand Down

0 comments on commit e25d42e

Please sign in to comment.