ingredients (version 0.3.1)

print.ceteris_paribus_explainer: Prints Individual Variable Explainer Summary

Description

Prints Individual Variable Explainer Summary

Usage

# S3 method for ceteris_paribus_explainer
print(x, ...)

Arguments

x

an individual variable profile explainer produced with the `ceteris_paribus()` function

...

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

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataCamp Workspace