I'm wondering if there's a way to change the order the features in a SHAP beeswarm plot are displayed in. The docs describe "transforms" like using shap_values.abs
or shap_values.abs.mean(0)
to change how the ordering is calculated, but what I actually want is to put in a list of features or indices and have it order by that.
From the docs:
shap.plots.beeswarm(shap_values, order=shap_values.abs)