From 6a7e45083b9cc382ce358ebe0b633e6354b7ac5d Mon Sep 17 00:00:00 2001 From: moririn2528 Date: Fri, 15 Sep 2023 16:06:22 +0900 Subject: [PATCH] fix best trials --- .../ts/components/BestTrialsCard.tsx | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/optuna_dashboard/ts/components/BestTrialsCard.tsx b/optuna_dashboard/ts/components/BestTrialsCard.tsx index f228fe522..cb5609216 100644 --- a/optuna_dashboard/ts/components/BestTrialsCard.tsx +++ b/optuna_dashboard/ts/components/BestTrialsCard.tsx @@ -32,22 +32,23 @@ export const BestTrialsCard: FC<{ header = `Best Trial (number=${bestTrial.number})` content = ( <> - {bestTrial.values === undefined || bestTrial.values.length === 1 ? ( - - {bestTrial.values} - - ) : ( - - Objective Values = [{bestTrial.values?.join(", ")}] - - )} + {!studyDetail?.is_preferential && + (bestTrial.values === undefined || bestTrial.values.length === 1 ? ( + + {bestTrial.values} + + ) : ( + + Objective Values = [{bestTrial.values?.join(", ")}] + + ))} Params = [ {bestTrial.params