Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|