xgb.importance.table: XGB Importance Function

Description Usage Arguments Examples

Description

This function allows you to graph the gain, cover and frequency of an XGB model.

Usage

1
2
3
xgb.importance.table(model, feature_names = NULL, gainColor = "lightgreen",
  digits = 6, coverColor = "lightblue", freqColor = "lightgrey",
  pageLength = 20, lengthMenu = c(5, 10, 15, 20, 25, 50, 100, 250, 500))

Arguments

gainColor

Type: character. Defines the display color for Gain column.

digits

Type: integer. The length of decimal place to display results.

coverColor

Type: character. Defines the display color of cover Column.

freqColor

Type: character. Defines the display color for frequency column.

pageLength

Type: integer. Defines the number of rows per page.

Model

Type: XGBoost Model. Must be defined.

features

Type: character. Vector. Must be defined.

menuLength

Type: integer. Changes the option in the page length menu.

Examples

1
cat_function()

RSimran/Simran documentation built on May 8, 2019, 7:34 a.m.