importance_plot: importance_plot

Description Usage Arguments Value

View source: R/importance_plot.R

Description

The function returns a barplot for feature importance vectors.

Usage

1
importance_plot(importance, n = NULL, threshold = NULL)

Arguments

importance

A named vector of importance values. If supported, the output of learner$importance.

n

An integer. The maximum number of importance values included into the plot (default: NULL, indicating all importance values will be plotted). Restrictions: 0 < n <= 'length(importance)'.

threshold

A numeric. The threshold of importance values to be included into the plot (default: NULL). Restrictions: 0 < threshold < 1. Please note, that if 'n' and 'threshold' are provided, 'threshold' is ignored.

Value

An importance plot.


kapsner/mlr3learners.lightgbm documentation built on Feb. 17, 2021, 5:53 p.m.