+1 vote
in Programming Languages by (63.8k points)
Is there any function to increase the font size of texts in SHAP (SHapley Additive exPlanations) plots? The default size is a bit small.

1 Answer

+2 votes
by (84.8k points)
selected by
 
Best answer

SHAP uses matplotlib for visualization, so modifying its settings allows you to control the font size. To increase the font size of texts in SHAP plots, you can use 'matplotlib.rcParams'. The list of rcParams can be found here.

Here is an example:

import matplotlib.pyplot as plt

plt.rcParams.update({'font.size': 16})

or 

plt.rcParams['font.size'] = 16

Related questions


...