Commit
·
1edbb65
1
Parent(s):
d0ba97a
Fix the explanations plot's labels
Browse filesThe labels for the x and y axis, "Feature" and "Shap Value" respectively, should be inverted:

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("
|
54 |
-
plt.xlabel("
|
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 |
|