hlnicholls commited on
Commit
c7cc8bc
·
1 Parent(s): 0468c9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -103,7 +103,8 @@ if len(gene_list) > 1:
103
  df_shap = df_total[df_total.index.isin(gene_list)]
104
  df_shap.drop(columns='XGB_Score', inplace=True)
105
  shap_values = explainer.shap_values(df_shap)
106
- summary_plot = shap.summary_plot(shap_values, df_shap)
 
107
  st.pyplot(fig=summary_plot)
108
  st.caption("SHAP Summary Plot of All Input Genes")
109
  feature_order = np.argsort(np.sum(np.abs(shap_values), axis=0)[:-1])
 
103
  df_shap = df_total[df_total.index.isin(gene_list)]
104
  df_shap.drop(columns='XGB_Score', inplace=True)
105
  shap_values = explainer.shap_values(df_shap)
106
+ #summary_plot = shap.summary_plot(shap_values, df_shap)
107
+ summary_plot = shap_summary_plot(shap_values)
108
  st.pyplot(fig=summary_plot)
109
  st.caption("SHAP Summary Plot of All Input Genes")
110
  feature_order = np.argsort(np.sum(np.abs(shap_values), axis=0)[:-1])