print.arena_static {arenar} | R Documentation |
Prints static arena summary
Description
Prints static arena summary
Usage
## S3 method for class 'arena_static'
print(x, ...)
Arguments
x |
|
... |
other parameters |
Value
None
Examples
library("DALEX")
library("arenar")
library("dplyr", quietly=TRUE, warn.conflicts = FALSE)
# create a model
model <- glm(m2.price ~ ., data=apartments)
# create a DALEX explainer
explainer <- DALEX::explain(model, data=apartments, y=apartments$m2.price)
# prepare observations to be explained
observations <- apartments[1:3, ]
# rownames are used as labels for each observation
rownames(observations) <- paste0(observations$construction.year, "-", observations$surface, "m2")
# generate static arena for one model and 3 observations
arena <- create_arena(live=FALSE) %>% push_model(explainer) %>% push_observations(observations)
# print summary
print(arena)
[Package arenar version 0.2.0 Index]