From cd485c14733e3147abacec09902f6912712c0704 Mon Sep 17 00:00:00 2001 From: Kenshin Abe Date: Tue, 14 Mar 2023 15:57:39 +0900 Subject: [PATCH] Add values0 != values1 condition to dominatedTrials --- optuna_dashboard/ts/dominatedTrials.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optuna_dashboard/ts/dominatedTrials.ts b/optuna_dashboard/ts/dominatedTrials.ts index 632e2cf73..06afb15f8 100644 --- a/optuna_dashboard/ts/dominatedTrials.ts +++ b/optuna_dashboard/ts/dominatedTrials.ts @@ -27,7 +27,7 @@ export const getDominatedTrials = ( const dominatedTrials: boolean[] = [] normalizedValues.forEach((values0: number[], i: number) => { const dominated = normalizedValues.some((values1: number[], j: number) => { - if (i === j) { + if (i === j || values0.every((v, i) => v == values1[i])) { return false } return values0.every((value0: number, k: number) => {