print.ceteris_paribus_explainer: Print Ceteris Paribus Explainer Summary

Description Usage Arguments Examples

View source: R/print_ceteris_paribus.R

Description

Print Ceteris Paribus Explainer Summary

Usage

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

Arguments

x

a ceteris_paribus explainer produced with the 'ceteris_paribus()' function

...

other arguments that will be passed to 'head()'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library("DALEX")
 ## Not run: 
library("randomForest")
set.seed(59)

apartments_rf_model <- randomForest(m2.price ~ construction.year + surface + floor +
      no.rooms + district, data = apartments)

explainer_rf <- explain(apartments_rf_model,
      data = apartmentsTest[,2:6], y = apartmentsTest$m2.price)

apartments_small <- select_sample(apartmentsTest, 10)

cp_rf <- ceteris_paribus(explainer_rf, apartments_small)
cp_rf

## End(Not run)

ceterisParibus documentation built on March 31, 2020, 5:22 p.m.