Fix target arg for importance

This commit is contained in:
c-bata committed 2023-01-06 10:14:52 +09:00
1 parent cac89cc9ef
commit 7f0f7bb139
1 file changed
+3 -1
+3 -1
View File
@@ -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