print.explainer: Prints Explainer Summary

Description Usage Arguments Examples

View source: R/print_explainer.R

Description

Prints Explainer Summary

Usage

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

Arguments

x

a model expaliner created with the 'explain' function

...

other parameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
apartments_lm <- lm(m2.price ~ ., data = apartments)
apartments_lm_ex <- explain(apartments_lm, data = apartments, label = "apartments_lm")
apartments_lm_ex

 ## Not run: 
library("breakDown2")
wine_lm_model4 <- lm(quality ~ pH + residual.sugar + sulphates + alcohol, data = wine)
wine_lm_explainer4 <- explain(wine_lm_model4, data = wine, label = "model_4v")
wine_lm_explainer4

library("randomForest")
wine_rf_model4 <- randomForest(quality ~ pH + residual.sugar + sulphates + alcohol, data = wine)
wine_rf_explainer4 <- explain(wine_rf_model4, data = wine, label = "model_rf")
wine_rf_explainer4
 
## End(Not run)

pbiecek/DALEX2 documentation built on Dec. 18, 2018, 2:33 a.m.