plot_varimp_xgboost: Plot varimp xgboost

View source: R/tidy_xgboost.R

plot_varimp_xgboostR Documentation

Plot varimp xgboost

Description

recommended parameters to control;

Usage

plot_varimp_xgboost(
  xgb,
  top_n = 10L,
  aggregate = NULL,
  as_table = FALSE,
  measure = c("Gain", "Cover", "Frequency"),
  ...
)

Arguments

xgb

xgb.Booster model

top_n

top n important variables

aggregate

a character vector. Predictors containing the string will be aggregated, and renamed to that string.

as_table

logical, default FALSE. If TRUE returns importances in a data frame

measure

choose between Gain, Cover, or Frequency for xgboost importance measure

...

additional arguments for xgb.ggplot.importance

font

font

Details

  • top_n number of features to include in the graph

Value

ggplot


autostats documentation built on Nov. 10, 2022, 6:13 p.m.