Print What If Explainer Summary

# S3 method for 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")
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
#> m2.price construction.year surface floor no.rooms district #> 1001 4644 1976 131 3 5 Srodmiescie