hlnicholls commited on
Commit
28bf9df
·
1 Parent(s): cb40cbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -139,9 +139,7 @@ if len(gene_list) > 1:
139
  plotly_fig['layout'] = {'xaxis': {'title': 'SHAP value (impact on model output)'}}
140
  max_display=8
141
  feature_names=df_shap.columns
142
- feature_order = np.argsort(np.sum(np.abs(shap_values), axis=0)[:-1])
143
- feature_order = feature_order[-min(max_display, len(feature_order)):]
144
- text = [feature_names[i] for i in feature_order]
145
  text = iter(text)
146
  for i in range(1, len(plotly_fig['data']), 2):
147
  t = text.__next__()
 
139
  plotly_fig['layout'] = {'xaxis': {'title': 'SHAP value (impact on model output)'}}
140
  max_display=8
141
  feature_names=df_shap.columns
142
+ text = [i for i in gene_list]
 
 
143
  text = iter(text)
144
  for i in range(1, len(plotly_fig['data']), 2):
145
  t = text.__next__()