View source: R/supervised-xgboost.R
| tl_plot_xgboost_shap_dependence | R Documentation |
Plot SHAP dependence for a specific feature
tl_plot_xgboost_shap_dependence(
model,
feature,
interaction_feature = NULL,
data = NULL,
n_samples = 100
)
model |
A tidylearn XGBoost model object |
feature |
Feature name to plot |
interaction_feature |
Feature to use for coloring (default: NULL) |
data |
Data for SHAP value calculation (default: NULL, uses training data) |
n_samples |
Number of samples to use (default: 100, NULL for all) |
A ggplot object with SHAP dependence plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.