update_label: Update label of explainer object

View source: R/misc_update.R

update_labelR Documentation

Update label of explainer object

Description

Function allows users to update label of any explainer in a unified way. It doesn't require knowledge about structre of an explainer.

Usage

update_label(explainer, label, verbose = TRUE)

Arguments

explainer

- explainer object that is supposed to be updated.

label

- new label, is going to be passed to an explainer

verbose

- logical, indicates if information about update should be printed

Value

updated explainer object

Examples

aps_lm_model4 <- lm(m2.price ~., data = apartments)
aps_lm_explainer4 <- explain(aps_lm_model4, data = apartments, label = "model_4v")
explainer <- update_label(aps_lm_explainer4, label = "lm")

DALEX documentation built on Jan. 16, 2023, 1:06 a.m.

Related to update_label in DALEX...