mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-04 12:50:44 +08:00
Fix target arg for importance
This commit is contained in:
1 parent
cac89cc9ef
commit
7f0f7bb139
1 file changed
+3
-1
@@ -96,7 +96,9 @@ def get_param_importance_from_trials_cache(
|
||||
return cache_importance
|
||||
|
||||
study = StudyWrapper(storage, study_id, trials)
|
||||
importance = _get_param_importances(study, completed_trials)
|
||||
importance = _get_param_importances(
|
||||
study, completed_trials, target=lambda t: t.values[objective_id]
|
||||
)
|
||||
converted = convert_to_importance_type(importance, trials)
|
||||
param_importance_cache[cache_key] = (n_completed_trials, converted)
|
||||
return converted
|
||||
|
||||
Reference in new issue
Block a user