tl_plot_xgboost_shap_summary: Plot SHAP summary for XGBoost model

View source: R/supervised-xgboost.R

tl_plot_xgboost_shap_summaryR Documentation

Plot SHAP summary for XGBoost model

Description

Plot SHAP summary for XGBoost model

Usage

tl_plot_xgboost_shap_summary(model, data = NULL, top_n = 10, n_samples = 100)

Arguments

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)

Value

A ggplot object with SHAP summary


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.