print.explainer: Print Explainer Summary

Description Usage Arguments Examples

View source: R/print_explainer.R

Description

Print Explainer Summary

Usage

1
2
## S3 method for class 'explainer'
print(x, ...)

Arguments

x

a model explainer created with the 'explain' function

...

other parameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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

 ## Not run: 
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
 
## End(Not run)

DALEX documentation built on July 8, 2020, 7:17 p.m.

Related to print.explainer in DALEX...