print.individual_variable_profile_explainer: Prints Individual Variable Explainer Summary

Description Usage Arguments Examples

View source: R/print_ceteris_paribus.R

Description

Prints Individual Variable Explainer Summary

Usage

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

Arguments

x

an individual variable profile explainer produced with the 'individual_variable_profile()' 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("DALEX2")
 ## 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 = apartments_test[,2:6], y = apartments_test$m2.price)

apartments_small <- select_sample(apartments_test, 10)

cp_rf <- individual_variable_profile(explainer_rf, apartments_small)
cp_rf

## End(Not run)

pbiecek/ceterisParibus2 documentation built on Sept. 16, 2019, 6:26 p.m.