print.what_if_explainer {ceterisParibus}R Documentation

Print What If Explainer Summary

Description

Print What If Explainer Summary

Usage

## S3 method for class 'what_if_explainer'
print(x, ...)

Arguments

x

a what_if explainer produced with the 'what_if' function

...

other arguments that will be passed to head()

Examples

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)

[Package ceterisParibus version 0.4.2 Index]