freddyaboulton HF staff Alexperiments commited on
Commit
b039fff
·
1 Parent(s): 7a83ea1

Fix the explanations plot's labels (#2)

Browse files

- Fix the explanations plot's labels (1edbb65e1d74e801f596d329526e203e3946d0e9)


Co-authored-by: Alessandro Diana <[email protected]>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,8 +45,8 @@ def interpret(*args):
45
  fig_m = plt.figure(tight_layout=True)
46
  plt.barh([s[1] for s in scores_desc], [s[0] for s in scores_desc])
47
  plt.title("Feature Shap Values")
48
- plt.ylabel("Shap Value")
49
- plt.xlabel("Feature")
50
  plt.tight_layout()
51
  return fig_m
52
 
 
45
  fig_m = plt.figure(tight_layout=True)
46
  plt.barh([s[1] for s in scores_desc], [s[0] for s in scores_desc])
47
  plt.title("Feature Shap Values")
48
+ plt.ylabel("Feature")
49
+ plt.xlabel("Shap Value")
50
  plt.tight_layout()
51
  return fig_m
52