But I get this error:
no applicable method for 'predict' applied to an object of class "randomForest" Calls: ... lapply -> FUN -> explain_column -> pred_wrapper -> predict Execution halted
In general if you cant run a simple predict on your model, you likely havent loaded the R library that implements the model and supporting features. In this case randomForest
@nirgrahamuk
Thanks, it worked!
Do you know the above command for an MLP model? A model which is made by this function:
"keras_model_sequential"
Actually, I couldn't find any function to give me the SHAP of those types of models.
what's your issue with such a model ? I would expect that they should provide something equivalent to a predict method that could be used as a pred_wrapper ...