Skip to contents

Use rack_put_feature_importance() to put feature importance tables to a rack.

Usage

rack_render_feature_importance(rack, wb = NULL, quiet = FALSE)

Arguments

rack

A model rack to calculate summaries on.

wb

Workbook object to attach the rendered summary tab(s) to. If NULL, the default, an empty Workbook object will be initialized to contain the new tab(s).

quiet

Logical. If TRUE, suppresses warnings about missing required columns. Default is FALSE.

Examples

wb <- rack_render_feature_importance(example_seg_rack_extended)

out_dir <- file.path(tempdir(), "g6tr.segmentation")
if (!dir.exists(out_dir)) dir.create(out_dir, recursive = TRUE)

openxlsx::saveWorkbook(
  wb,
  file.path(out_dir, "example_wb_feature_importance.xlsx"),
  overwrite = TRUE
)