View source: R/supervised-xgboost.R
| tl_plot_xgboost_shap_summary | R Documentation |
Plot SHAP summary for XGBoost model
tl_plot_xgboost_shap_summary(model, data = NULL, top_n = 10, n_samples = 100)
model |
A tidylearn XGBoost model object |
data |
Data for SHAP value calculation (default: NULL, uses training data) |
top_n |
Number of top features to display (default: 10) |
n_samples |
Number of samples to use (default: 100, NULL for all) |
A ggplot object with SHAP summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.