hlnicholls commited on
Commit
47da41e
1 Parent(s): a8d51d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -67,7 +67,7 @@ if len(gene_list) > 1:
67
  st.dataframe(df)
68
  df.drop(columns='XGB_Score', inplace=True)
69
  shap_values = explainer.shap_values(df)
70
- summary_plot = shap.summary_plot(shap_values, df)
71
  st.caption("SHAP Summary Plot of All Input Genes")
72
  components.html(summary_plot, scrolling = True)
73
 
@@ -85,7 +85,8 @@ if len(input_gene) == 1:
85
  force_plot = shap.force_plot(
86
  explainer.expected_value,
87
  shap_values.values,
88
- df2)
 
89
  components.html(force_plot, scrolling = True)
90
  else:
91
  pass
 
67
  st.dataframe(df)
68
  df.drop(columns='XGB_Score', inplace=True)
69
  shap_values = explainer.shap_values(df)
70
+ summary_plot = shap.summary_plot(shap_values, df, show=False)
71
  st.caption("SHAP Summary Plot of All Input Genes")
72
  components.html(summary_plot, scrolling = True)
73
 
 
85
  force_plot = shap.force_plot(
86
  explainer.expected_value,
87
  shap_values.values,
88
+ df2,
89
+ show=False)
90
  components.html(force_plot, scrolling = True)
91
  else:
92
  pass