You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a binary classification problem for which I have developed a LightGBM classifier. I would like to plot global SHAP contributions for the X most important features, as in the scatter plot documentation the code shap.plots.scatter(shap_values[:, shap_values.abs.mean(0).argsort[-1]]) produces
I have a binary classification problem for which I have developed a LightGBM classifier. I would like to plot global SHAP contributions for the X most important features, as in the scatter plot documentation the code
shap.plots.scatter(shap_values[:, shap_values.abs.mean(0).argsort[-1]])
producesMy attempt is as follows:
But it produces the error message:
TypeError: list indices must be integers or slices, not tuple
How could I get the desired plot for some of my features?
The text was updated successfully, but these errors were encountered: