0

In the SHAP force plot, is there a way to change the value of the x-axis to a custom name?

f = plt.figure(figsize=(8, 6))
shap.summary_plot(shap_values, X_test, plot_type="bar", feature_names=X_train.columns, class_names = ORGD_Test['Class']) 
Amit Amola
  • 2,301
  • 2
  • 22
  • 37
  • Welcome to SO! Are you interested in `force_plot` or `summary_plot`? It's not clear from your question, please clarify. – Sergey Bushmanov Dec 18 '20 at 06:20
  • Hi did you find an answer to this? I'm also looking to change the x-axis in the shap force plot - from the row indices to names I've given each row – DN1 Mar 29 '21 at 10:31

0 Answers0