plot_varimp_xgboost | R Documentation |
recommended parameters to control;
plot_varimp_xgboost( xgb, top_n = 10L, aggregate = NULL, as_table = FALSE, measure = c("Gain", "Cover", "Frequency"), ... )
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 |
font |
font |
top_n
number of features to include in the graph
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.