Plot SHAP dependence for a specific feature
tl_plot_xgboost_shap_dependence(
model,
feature,
interaction_feature = NULL,
data = NULL,
n_samples = 100
)A ggplot object with SHAP dependence plot
A tidylearn XGBoost model object
Feature name to plot
Feature to use for coloring (default: NULL)
Data for SHAP value calculation (default: NULL, uses training data)
Number of samples to use (default: 100, NULL for all)