mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
Fix best trial history for pruned trials
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user