From 272828fed433cb5452fb950d19309ba4f6ad8021 Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 9 Apr 2021 15:59:08 +0900 Subject: [PATCH 1/6] Add visual improvements of slice plot --- optuna_dashboard/static/components/GraphContour.tsx | 5 +++-- optuna_dashboard/static/components/GraphSlice.tsx | 11 ++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/optuna_dashboard/static/components/GraphContour.tsx b/optuna_dashboard/static/components/GraphContour.tsx index aad82327..6ce595e3 100644 --- a/optuna_dashboard/static/components/GraphContour.tsx +++ b/optuna_dashboard/static/components/GraphContour.tsx @@ -118,7 +118,7 @@ export const GraphContour: FC<{ - +
@@ -137,10 +137,11 @@ const plotContour = ( } const layout: Partial = { - title: "Contour", margin: { l: 50, + t: 0, r: 50, + b: 0, }, xaxis: { gridcolor: "#f2f5fa", diff --git a/optuna_dashboard/static/components/GraphSlice.tsx b/optuna_dashboard/static/components/GraphSlice.tsx index 7749f338..c0cad77b 100644 --- a/optuna_dashboard/static/components/GraphSlice.tsx +++ b/optuna_dashboard/static/components/GraphSlice.tsx @@ -7,6 +7,7 @@ import { InputLabel, MenuItem, Select, + Typography, } from "@material-ui/core" import { createStyles, makeStyles, Theme } from "@material-ui/core/styles" @@ -14,10 +15,12 @@ const plotDomId = "graph-slice" const useStyles = makeStyles((theme: Theme) => createStyles({ + title: { + margin: "1em 0", + }, formControl: { marginBottom: theme.spacing(2), marginRight: theme.spacing(5), - marginTop: theme.spacing(10), }, }) ) @@ -68,6 +71,7 @@ export const GraphSlice: FC<{ + Slice {study !== null && study.directions.length !== 1 ? ( Objective ID: @@ -94,7 +98,7 @@ export const GraphSlice: FC<{ ) : null} - +
@@ -111,10 +115,11 @@ const plotSlice = ( } const layout: Partial = { - title: "Slice", margin: { l: 50, + t: 0, r: 50, + b: 0, }, xaxis: { title: selected || "", From 761ba3bf2e6e56bad4e46ad4393f09ab184daa10 Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 9 Apr 2021 15:59:50 +0900 Subject: [PATCH 2/6] Add visual improvements of contour plot --- optuna_dashboard/static/components/GraphContour.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/optuna_dashboard/static/components/GraphContour.tsx b/optuna_dashboard/static/components/GraphContour.tsx index 6ce595e3..8b3c0e28 100644 --- a/optuna_dashboard/static/components/GraphContour.tsx +++ b/optuna_dashboard/static/components/GraphContour.tsx @@ -7,6 +7,7 @@ import { InputLabel, MenuItem, Select, + Typography, } from "@material-ui/core" import { createStyles, makeStyles, Theme } from "@material-ui/core/styles" @@ -14,6 +15,9 @@ const plotDomId = "graph-contour" const useStyles = makeStyles((theme: Theme) => createStyles({ + title: { + margin: "1em 0", + }, formControl: { marginBottom: theme.spacing(2), marginRight: theme.spacing(2), @@ -84,6 +88,7 @@ export const GraphContour: FC<{ + Contour {study !== null && study.directions.length !== 1 ? ( Objective ID: From 5fe359fe8c90eb546e7e9b9704d4423626316afe Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 9 Apr 2021 16:04:54 +0900 Subject: [PATCH 3/6] Add title on GraphHistory --- optuna_dashboard/static/components/GraphContour.tsx | 4 +++- optuna_dashboard/static/components/GraphHistory.tsx | 7 +++++++ optuna_dashboard/static/components/GraphSlice.tsx | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/optuna_dashboard/static/components/GraphContour.tsx b/optuna_dashboard/static/components/GraphContour.tsx index 8b3c0e28..85f410c9 100644 --- a/optuna_dashboard/static/components/GraphContour.tsx +++ b/optuna_dashboard/static/components/GraphContour.tsx @@ -88,7 +88,9 @@ export const GraphContour: FC<{ - Contour + + Contour + {study !== null && study.directions.length !== 1 ? ( Objective ID: diff --git a/optuna_dashboard/static/components/GraphHistory.tsx b/optuna_dashboard/static/components/GraphHistory.tsx index 1a5447d7..ddaf0bf1 100644 --- a/optuna_dashboard/static/components/GraphHistory.tsx +++ b/optuna_dashboard/static/components/GraphHistory.tsx @@ -11,6 +11,7 @@ import { Select, Radio, RadioGroup, + Typography, } from "@material-ui/core" import { createStyles, makeStyles, Theme } from "@material-ui/core/styles" @@ -18,6 +19,9 @@ const plotDomId = "graph-history" const useStyles = makeStyles((theme: Theme) => createStyles({ + title: { + margin: "1em 0", + }, formControl: { marginBottom: theme.spacing(2), }, @@ -83,6 +87,9 @@ export const GraphHistory: FC<{ + + History + {study !== null && study.directions.length !== 1 ? ( Objective ID: diff --git a/optuna_dashboard/static/components/GraphSlice.tsx b/optuna_dashboard/static/components/GraphSlice.tsx index c0cad77b..9b840bd7 100644 --- a/optuna_dashboard/static/components/GraphSlice.tsx +++ b/optuna_dashboard/static/components/GraphSlice.tsx @@ -71,7 +71,9 @@ export const GraphSlice: FC<{ - Slice + + Slice + {study !== null && study.directions.length !== 1 ? ( Objective ID: From 7e1685946a58656b8f3ee48679d429aee1cf70dd Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 9 Apr 2021 16:31:14 +0900 Subject: [PATCH 4/6] Add visual improvements of pareto front --- .../static/components/GraphParetoFront.tsx | 12 +++++++++--- optuna_dashboard/static/components/StudyDetail.tsx | 14 +++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/optuna_dashboard/static/components/GraphParetoFront.tsx b/optuna_dashboard/static/components/GraphParetoFront.tsx index b2d861d0..f23dc32d 100644 --- a/optuna_dashboard/static/components/GraphParetoFront.tsx +++ b/optuna_dashboard/static/components/GraphParetoFront.tsx @@ -6,6 +6,7 @@ import { FormLabel, MenuItem, Select, + Typography, } from "@material-ui/core" import { createStyles, makeStyles, Theme } from "@material-ui/core/styles" @@ -13,10 +14,12 @@ const plotDomId = "graph-pareto-front" const useStyles = makeStyles((theme: Theme) => createStyles({ + title: { + margin: "1em 0", + }, formControl: { marginBottom: theme.spacing(2), marginRight: theme.spacing(5), - marginTop: theme.spacing(10), }, }) ) @@ -51,6 +54,9 @@ export const GraphParetoFront: FC<{ {study !== null && study.directions.length !== 1 ? ( + + Pareto Front + Objective X ID: