From 55b2adf04fe2be8b3bff4d993746b629d9382cdb Mon Sep 17 00:00:00 2001 From: keisuke-umezawa Date: Sun, 5 Nov 2023 17:18:39 +0900 Subject: [PATCH] Delete min and max in AxisInfo --- optuna_dashboard/ts/graphUtil.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/optuna_dashboard/ts/graphUtil.ts b/optuna_dashboard/ts/graphUtil.ts index 26f63971..35a9002b 100644 --- a/optuna_dashboard/ts/graphUtil.ts +++ b/optuna_dashboard/ts/graphUtil.ts @@ -2,8 +2,6 @@ const PADDING_RATIO = 0.05 export type AxisInfo = { name: string - min: number - max: number isLog: boolean isCat: boolean indices: (string | number)[] @@ -42,11 +40,6 @@ const getAxisInfoForCategoricalParams = ( trial.params.find((p) => p.name === paramName)?.param_external_value || null ) - const isDynamic = values.some((v) => v === null) - const span = distribution.choices.length - (isDynamic ? 2 : 1) - const padding = span * PADDING_RATIO - const min = -padding - const max = span + padding const indices = distribution.choices .map((c) => c.value) @@ -59,8 +52,6 @@ const getAxisInfoForCategoricalParams = ( ) return { name: paramName, - min, - max, isLog: false, isCat: true, indices, @@ -101,8 +92,6 @@ const getAxisInfoForNumericalParams = ( } return { name: paramName, - min, - max, isLog: distribution.log, isCat: false, indices,