Skip to content

Commit 7e7589c

Browse files
author
Alexander März
committed
Update param_pos
1 parent 8baa8d5 commit 7e7589c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightgbmlss/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def plot(self,
502502
explainer = shap.TreeExplainer(self.booster)
503503
shap_values = explainer(X)
504504

505-
param_pos = list(self.dist.param_dict.keys()).index(parameter)
505+
param_pos = self.dist.distribution_arg_names.index(parameter)
506506

507507
if plot_type == "Partial_Dependence":
508508
if self.dist.n_dist_param == 1:

0 commit comments

Comments
 (0)