Alexperiments commited on
Commit
1edbb65
·
1 Parent(s): d0ba97a

Fix the explanations plot's labels

Browse files

The labels for the x and y axis, "Feature" and "Shap Value" respectively, should be inverted:
![Screenshot 2022-09-09 at 11-06-51 Gradio.png](https://s3.amazonaws.com/moonup/production/uploads/1662714431148-631b00fd2ea8535ea47d8de7.png)

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