print.what_if_2d_explainer: Print What If 2D Explainer Summary

Description Usage Arguments Examples

View source: R/print_what_if_2d.R

Description

Print What If 2D Explainer Summary

Usage

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

Arguments

x

a what_if_2d explainer produced with the 'what_if_2d' function

...

other arguments that will be passed to head()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library("DALEX")
 ## Not run: 
library("randomForest")
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)
new_apartment <- apartmentsTest[1, ]
new_apartment

## End(Not run)

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