Fix best trial history for pruned trials

This commit is contained in:
Naoto Mizuno
2024-03-29 11:56:12 +09:00
parent a228382b51
commit 4f76b8a8ef
@@ -299,7 +299,7 @@ const plotHistory = (
for (let i = 0; i < feasibleTrials.length; i++) {
const t = feasibleTrials[i]
const value = target.getTargetValue(t) as number
if (value === null) {
if (t.state !== "Complete") {
continue
} else if (currentBest === null) {
currentBest = value