mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-26 14:00:39 +08:00
Fix local variable names
This commit is contained in:
@@ -51,13 +51,13 @@ const plotIntermediateValue = (trials: Trial[], mode: string) => {
|
||||
return
|
||||
}
|
||||
|
||||
const FilteredTrials = trials.filter(
|
||||
const filteredTrials = trials.filter(
|
||||
(t) =>
|
||||
t.state === "Complete" ||
|
||||
(t.state === "Pruned" && t.values && t.values.length > 0) ||
|
||||
t.state == "Running"
|
||||
)
|
||||
const plotData: Partial<plotly.PlotData>[] = FilteredTrials.map((trial) => {
|
||||
const plotData: Partial<plotly.PlotData>[] = filteredTrials.map((trial) => {
|
||||
const values = trial.intermediate_values.filter((iv) => iv.value !== "inf")
|
||||
return {
|
||||
x: values.map((iv) => iv.step),
|
||||
|
||||
Reference in New Issue
Block a user