I've been reading and having a go at creating some SHAP plots of some of my models but for the life of me can't find a package that integrates with caret
.
I just need to sense check the direction of the features are sensible.
Let's say I build a simple xgboost
model like so.
model_1 <- train(
sales~.,
data=example_df,
method="xgbTree",
preProcess=c('center', 'scale', 'zv'),
trControl=trainControl(method="repeatedcv", number=5, repeats=2),
na.action = na.omit
)
I've done this a few times and done some feature engineering and selection but now want to see shap values. How do I achieve this?