Learn R Programming

DALEX (version 2.4.2)

print.explainer: Print Explainer Summary

Description

Print Explainer Summary

Usage

# S3 method for explainer
print(x, ...)

Arguments

x

a model explainer created with the `explain` function

...

other parameters

Examples

Run this code

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

 # \donttest{
library("ranger")
titanic_ranger_model <- ranger(survived~., data = titanic_imputed, num.trees = 50,
                               probability = TRUE)
explainer_ranger  <- explain(titanic_ranger_model, data = titanic_imputed[,-8],
                             y = titanic_imputed$survived,
                             label = "model_ranger")
explainer_ranger
 # }

Run the code above in your browser using DataLab