Spaces:
Sleeping
Sleeping
Commit
·
958afc7
1
Parent(s):
0a9cca9
Update shap_plots.py
Browse files- shap_plots.py +1 -1
shap_plots.py
CHANGED
@@ -391,7 +391,7 @@ def shap_summary_plot(shap_values, features=None, feature_names=None, max_displa
|
|
391 |
pl.gca().spines['top'].set_visible(False)
|
392 |
pl.gca().spines['left'].set_visible(False)
|
393 |
pl.gca().tick_params(color=axis_color, labelcolor=axis_color)
|
394 |
-
pl.yticks(range(len(feature_order)),
|
395 |
pl.gca().tick_params('y', length=20, width=0.5, which='major')
|
396 |
pl.gca().tick_params('x', labelsize=11)
|
397 |
pl.ylim(-1, len(feature_order))
|
|
|
391 |
pl.gca().spines['top'].set_visible(False)
|
392 |
pl.gca().spines['left'].set_visible(False)
|
393 |
pl.gca().tick_params(color=axis_color, labelcolor=axis_color)
|
394 |
+
pl.yticks(range(len(feature_order)), [feature_names[i] for i in feature_order], fontsize=13)
|
395 |
pl.gca().tick_params('y', length=20, width=0.5, which='major')
|
396 |
pl.gca().tick_params('x', labelsize=11)
|
397 |
pl.ylim(-1, len(feature_order))
|