mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-30 13:30:17 +08:00
27 lines
733 B
TypeScript
27 lines
733 B
TypeScript
import { Card, CardContent, useTheme } from "@mui/material"
|
|
import { PlotIntermediateValues } from "@optuna/react"
|
|
import React, { FC } from "react"
|
|
import { Trial } from "ts/types/optuna"
|
|
import { usePlotlyColorTheme } from "../state"
|
|
|
|
export const GraphIntermediateValues: FC<{
|
|
trials: Trial[]
|
|
includePruned: boolean
|
|
logScale: boolean
|
|
}> = ({ trials, includePruned, logScale }) => {
|
|
const theme = useTheme()
|
|
const colorTheme = usePlotlyColorTheme(theme.palette.mode)
|
|
return (
|
|
<Card>
|
|
<CardContent>
|
|
<PlotIntermediateValues
|
|
trials={trials}
|
|
includePruned={includePruned}
|
|
logScale={logScale}
|
|
colorTheme={colorTheme}
|
|
/>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|