tl_plot_xgboost_importance: Plot feature importance for an XGBoost model

View source: R/supervised-xgboost.R

tl_plot_xgboost_importanceR Documentation

Plot feature importance for an XGBoost model

Description

Plot feature importance for an XGBoost model

Usage

tl_plot_xgboost_importance(model, top_n = 10, importance_type = "gain", ...)

Arguments

model

A tidylearn XGBoost model object

top_n

Number of top features to display (default: 10)

importance_type

Type of importance: "gain", "cover", "frequency"

...

Additional arguments

Value

A ggplot object


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