return matrix of shap score and mean ranked score list
1 | shap_score_rank(xgb_model = xgb_mod, shap_approx = TRUE, X_train = mat_train)
|
xgb_model |
xgboost object |
shap_approx |
logical |
X_train |
train data as a matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.