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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -42,4 +42,5 @@ explainer = shap.Explainer(model, X_train)
42
  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')
 
 
42
  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)