Print What If 2D Explainer Summary
# S3 method for what_if_2d_explainer print(x, ...)
x | a what_if_2d explainer produced with the 'what_if_2d' function |
---|---|
... | other arguments that will be passed to head() |
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