mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-21 13:10:53 +08:00
Fix a memory leak in GraphHyperparameterImportance
This commit is contained in:
@@ -57,8 +57,8 @@ export const GraphHyperparameterImportances: FC<{
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
async function fetchParamImportances(studyId: number, objectiveId: number) {
|
||||
await getParamImportances(studyId, objectiveId)
|
||||
if (numCompletedTrials > 0) {
|
||||
getParamImportances(studyId, objectiveId)
|
||||
.then((p) => {
|
||||
setImportances(p)
|
||||
})
|
||||
@@ -72,10 +72,6 @@ export const GraphHyperparameterImportances: FC<{
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
if (numCompletedTrials > 0) {
|
||||
fetchParamImportances(studyId, objectiveId)
|
||||
}
|
||||
}, [numCompletedTrials, objectiveId, theme.palette.mode])
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user