View source: R/supervised-xgboost.R
| tl_xgboost_shap | R Documentation |
Generate SHAP values for XGBoost model interpretation
tl_xgboost_shap(model, data = NULL, n_samples = 100, trees_idx = NULL)
model |
A tidylearn XGBoost model object |
data |
Data for SHAP value calculation (default: NULL, uses training data) |
n_samples |
Number of samples to use (default: 100, NULL for all) |
trees_idx |
Trees to include (default: NULL, uses all trees) |
A data frame with SHAP values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.