79110552

Date: 2024-10-21 14:46:46
Score: 1
Natty:
Report link

If you wanna change the feature font size,this code works for me:

shap.summary_plot(shap_values, show=False)

Get the current figure and axes objects.

fig, ax = plt.gcf(), plt.gca()

for text in ax.texts: text.set_fontsize( your_font_size_number)

plt.show()

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Amaury Ribeiro