dvj4 commited on
Commit
5a74294
·
1 Parent(s): 8f1d6a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -43,4 +43,6 @@ shap_values = explainer(X_test)
43
  fig, ax = plt.subplots()
44
  shap.summary_plot(shap_values, X_test, plot_type="bar", show=False)
45
  st.pyplot(fig, bbox_inches='tight')
46
- shap.plots.beeswarm(shap_values)
 
 
 
43
  fig, ax = plt.subplots()
44
  shap.summary_plot(shap_values, X_test, plot_type="bar", show=False)
45
  st.pyplot(fig, bbox_inches='tight')
46
+ fig2, ax2 = plt.subplots()
47
+ shap.plots.beeswarm(shap_values, ax=ax2)
48
+ st.pyplot(fig2, bbox_inches='tight')