I have a causal inference model with
featurizer=PolynomialFeatures(degree=3)
which includes a degree 3 polynomial in X variable. I get the plot for interpretability too with:
shap.plots.beeswarm(shap_values['Y0']['T0'])
but the plot shows me the shap values for X0
, X0^2
and X0^3
as:
However, is it possible that the beeswarm plot show me only the values for X0?
Best regards
X0 and X0^3 are the column 0 and 2 of the array named main_effects inside the object T0, the subplot with these features could be: