diff --git a/optuna_dashboard/ts/components/GraphHyperparameterImportances.tsx b/optuna_dashboard/ts/components/GraphHyperparameterImportances.tsx
index d1eee8ae..2561d48f 100644
--- a/optuna_dashboard/ts/components/GraphHyperparameterImportances.tsx
+++ b/optuna_dashboard/ts/components/GraphHyperparameterImportances.tsx
@@ -13,6 +13,7 @@ import {
Card,
CardContent,
} from "@mui/material"
+import Grid2 from "@mui/material/Unstable_Grid2"
import { plotlyDarkTemplate } from "./PlotlyDarkMode"
import { actionCreator } from "../action"
@@ -42,17 +43,29 @@ export const GraphHyperparameterImportanceBeta: FC<{
}, [nObjectives, importances, theme.palette.mode])
return (
-
- {Array.from({ length: nObjectives || 1 }, (_, i) => (
-
-
-
-
-
-
-
- ))}
-
+ <>
+ {Array.from({ length: nObjectives || 1 }, (_, i) => {
+ let title = `Importance for the Objective Value`
+ if (nObjectives != null && nObjectives > 1) {
+ title = `Importance for the Objective ${i}`
+ }
+ return (
+
+
+
+
+ {title}
+
+
+
+
+
+ )
+ })}
+ >
)
}
@@ -60,9 +73,9 @@ const plotParamImportancesBeta = (
importances: ParamImportance[][],
mode: string
) => {
- const getLayout = (title: string): Partial => ({
+ const layout: Partial = {
xaxis: {
- title: title,
+ title: "Hyperparameter Importance",
},
yaxis: {
title: "Hyperparameter",
@@ -76,7 +89,7 @@ const plotParamImportancesBeta = (
},
showlegend: false,
template: mode === "dark" ? plotlyDarkTemplate : {},
- })
+ }
importances.forEach((importance, objectiveId) => {
if (document.getElementById(getPlotDomId(objectiveId)) === null) {
@@ -89,11 +102,6 @@ const plotParamImportancesBeta = (
const param_hover_templates = reversed.map(
(p) => `${p.name} (${p.distribution}): ${p.importance} `
)
- let title = `Importance for the Objective Value`
- if (importance.length > 1) {
- title = `Importance for the Objective ${objectiveId}`
- }
- const layout = getLayout(title)
const plotData: Partial[] = [
{
type: "bar",
diff --git a/optuna_dashboard/ts/components/StudyDetailBeta.tsx b/optuna_dashboard/ts/components/StudyDetailBeta.tsx
index ef50d41f..9097fce7 100644
--- a/optuna_dashboard/ts/components/StudyDetailBeta.tsx
+++ b/optuna_dashboard/ts/components/StudyDetailBeta.tsx
@@ -32,6 +32,7 @@ import { GraphSlice } from "./GraphSlice"
import { GraphParetoFront } from "./GraphParetoFront"
import { DataGrid, DataGridColumn } from "./DataGrid"
import { GraphIntermediateValues } from "./GraphIntermediateValues"
+import { Edf } from "./GraphEdf"
interface ParamTypes {
studyId: string
@@ -105,6 +106,10 @@ export const StudyDetailBeta: FC<{
) : null}
+
-
- Hyperparameter Importance
-
-
Hyperparameter Relationships
@@ -235,6 +233,14 @@ export const StudyDetailBeta: FC<{
+
+ Empirical Distribution of the Objective Value
+
+
+
+
+
+
)
} else if (page === "trials") {