mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
Rename GraphEdfMultiStudies into GraphEdf
This commit is contained in:
@@ -27,8 +27,8 @@ import HomeIcon from "@mui/icons-material/Home"
|
||||
import { actionCreator } from "../action"
|
||||
import { studySummariesState, studyDetailsState } from "../state"
|
||||
import { AppDrawer } from "./AppDrawer"
|
||||
import { GraphEdfMultiStudies } from "./GraphEdf"
|
||||
import { GraphHistory } from "./GraphHistory"
|
||||
import { GraphEdf } from "./GraphEdf"
|
||||
import { GraphHistoryMultiStudies } from "./GraphHistory"
|
||||
import { useNavigate, useLocation } from "react-router-dom"
|
||||
|
||||
const useQuery = (): URLSearchParams => {
|
||||
@@ -334,10 +334,7 @@ const StudiesGraph: FC<{ studies: StudySummary[] }> = ({ studies }) => {
|
||||
<Grid2 xs={6} key={i}>
|
||||
<Card>
|
||||
<CardContent>
|
||||
<GraphEdfMultiStudies
|
||||
studies={showStudyDetails}
|
||||
objectiveId={i}
|
||||
/>
|
||||
<GraphEdf studies={showStudyDetails} objectiveId={i} />
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Grid2>
|
||||
|
||||
@@ -11,7 +11,7 @@ interface EdfPlotInfo {
|
||||
trials: Trial[]
|
||||
}
|
||||
|
||||
export const GraphEdfMultiStudies: FC<{
|
||||
export const GraphEdf: FC<{
|
||||
studies: StudyDetail[]
|
||||
objectiveId: number
|
||||
}> = ({ studies, objectiveId }) => {
|
||||
@@ -31,7 +31,7 @@ export const GraphEdfMultiStudies: FC<{
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
plotEdfMultiStudies(edfPlotInfos, target, domId, theme.palette.mode)
|
||||
plotEdf(edfPlotInfos, target, domId, theme.palette.mode)
|
||||
}, [studies, target, theme.palette.mode])
|
||||
|
||||
return (
|
||||
@@ -47,7 +47,7 @@ export const GraphEdfMultiStudies: FC<{
|
||||
)
|
||||
}
|
||||
|
||||
const plotEdfMultiStudies = (
|
||||
const plotEdf = (
|
||||
edfPlotInfos: EdfPlotInfo[],
|
||||
target: Target,
|
||||
domId: string,
|
||||
|
||||
@@ -25,7 +25,7 @@ import { AppDrawer, PageId } from "./AppDrawer"
|
||||
import { GraphParallelCoordinate } from "./GraphParallelCoordinate"
|
||||
import { Contour } from "./GraphContour"
|
||||
import { GraphSlice } from "./GraphSlice"
|
||||
import { GraphEdfMultiStudies } from "./GraphEdf"
|
||||
import { GraphEdf } from "./GraphEdf"
|
||||
import { TrialList } from "./TrialList"
|
||||
import { StudyHistory } from "./StudyHistory"
|
||||
|
||||
@@ -113,10 +113,7 @@ export const StudyDetail: FC<{
|
||||
<Grid2 xs={6} key={i}>
|
||||
<Card>
|
||||
<CardContent>
|
||||
<GraphEdfMultiStudies
|
||||
studies={[studyDetail]}
|
||||
objectiveId={i}
|
||||
/>
|
||||
<GraphEdf studies={[studyDetail]} objectiveId={i} />
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Grid2>
|
||||
|
||||
Reference in New Issue
Block a user