recommended parameters to control;
plot_varimp_xgboost(
xgb,
top_n = 10L,
aggregate = NULL,
as_table = FALSE,
formula = NULL,
measure = c("Gain", "Cover", "Frequency"),
...
)ggplot
xgb.Booster model
top n important variables
a character vector. Predictors containing the string will be aggregated, and renamed to that string.
logical, default FALSE. If TRUE returns importances in a data frame
formula for the model. Use to provide original names if xgboost is scrambling the names internally
choose between Gain, Cover, or Frequency for xgboost importance measure
additional arguments for xgb.ggplot.importance
top_nnumber of features to include in the graph