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