Skip to content

Commit

Permalink
Address the mamu's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Nov 2, 2023
1 parent 0e1feb3 commit 79b50cc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions optuna_dashboard/ts/components/GraphIntermediateValues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@ const plotIntermediateValue = (
(iv) => iv.value !== "inf" && iv.value !== "-inf" && iv.value !== "nan"
)
const isFeasible = trial.constraints.every((c) => c <= 0)
let name = `trial #${trial.number}`
if (trial.state === "Running") {
name += ` (running)`
} else {
name += isFeasible ? `` : ` (infeasible)`
}
const name = `trial #${trial.number} ${
trial.state === "Running"
? "(running)"
: !isFeasible
? " (infeasible)"
: ""
}`
return {
x: values.map((iv) => iv.step),
y: values.map((iv) => iv.value),
Expand Down

0 comments on commit 79b50cc

Please sign in to comment.