Description Usage Arguments Value Examples
This function interactively plots the table of the feature importance from a xgboost model, provided you give the feature names.
1 2 3 4 | xgb.importance.interactive(importance, feature_names = NULL, digits = 6,
pageLength = 20, lengthMenu = c(5, 10, 15, 20, 25, 50, 100, 500),
gainColor = "lightgreen", coverColor = "lightblue",
freqColor = "lightgrey")
|
importance |
Type: xgboost model, data.table, or data.frame. Your xgboost model to get feature importance from. Or a data.table/data.frame. |
feature_names |
Type: vector of characters. The feature names to use in the feature importance. If you provide a data.table/data.frame, do not input this argument. Defaults to |
digits |
Type: integer. The number of digits to print in the table. Defaults to |
pageLength |
Type: integer. The number of features to print in a single page. Defaults to |
lengthMenu |
Type: vector of integers. The selectable number of features to print in a single page. Defaults to |
gainColor |
Type: character. The color assigned to bars for Gain depending on its value per feature. Defaults to |
coverColor |
Type: character. The color assigned to bars for Cover depending on its value per feature. Defaults to |
freqColor |
Type: character. The color assigned to bars for Frequency depending on its value per feature. Defaults to |
The "datatable" (not data.table) printed.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.