print.arena_live: Prints live arena summary

Description Usage Arguments Value Examples

View source: R/print.R

Description

Prints live arena summary

Usage

1
2
## S3 method for class 'arena_live'
print(x, ...)

Arguments

x

arena_live object

...

other parameters

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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:30, ]
# rownames are used as labels for each observation
rownames(observations) <- paste0(observations$construction.year, "-", observations$surface, "m2")
# generate live arena for one model and 30 observations
arena <- create_arena(live=TRUE) %>% push_model(explainer) %>% push_observations(observations)
# print summary
print(arena)

arenar documentation built on Oct. 23, 2020, 8:03 p.m.