Spaces:
Sleeping
Sleeping
Commit
·
e558219
1
Parent(s):
07af60d
Update app.py
Browse files
app.py
CHANGED
@@ -82,12 +82,12 @@ df2.drop(columns='XGB_Score', inplace=True)
|
|
82 |
|
83 |
if input_gene:
|
84 |
shap_values = explainer.shap_values(df2)
|
|
|
85 |
force_plot = shap.force_plot(
|
86 |
explainer.expected_value,
|
87 |
shap_values,
|
88 |
df2,
|
89 |
-
show=False)
|
90 |
-
shap.initjs()
|
91 |
st.pyplot(fig=force_plot)
|
92 |
else:
|
93 |
pass
|
|
|
82 |
|
83 |
if input_gene:
|
84 |
shap_values = explainer.shap_values(df2)
|
85 |
+
shap.getjs()
|
86 |
force_plot = shap.force_plot(
|
87 |
explainer.expected_value,
|
88 |
shap_values,
|
89 |
df2,
|
90 |
+
matplotlib = True,show=False)
|
|
|
91 |
st.pyplot(fig=force_plot)
|
92 |
else:
|
93 |
pass
|