Skip to content

Commit

Permalink
Update param_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander März committed Aug 28, 2023
1 parent 8baa8d5 commit 7e7589c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightgbmlss/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def plot(self,
explainer = shap.TreeExplainer(self.booster)
shap_values = explainer(X)

param_pos = list(self.dist.param_dict.keys()).index(parameter)
param_pos = self.dist.distribution_arg_names.index(parameter)

if plot_type == "Partial_Dependence":
if self.dist.n_dist_param == 1:
Expand Down

0 comments on commit 7e7589c

Please sign in to comment.