powered by
Function allows users to update label of any explainer in a unified way. It doesn't require knowledge about structre of an explainer.
update_label(explainer, label, verbose = TRUE)
updated explainer object
- explainer object that is supposed to be updated.
- new label, is going to be passed to an explainer
- logical, indicates if information about update should be printed
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")
Run the code above in your browser using DataLab