Adds data frame to create exploratory data analysis plots
push_dataset(arena, dataset, target, label)
arena | live or static arena object |
---|---|
dataset | data frame used for EDA plots |
target | name of target variable |
label | label of dataset |
Updated arena object
library("DALEX") library("arenar") library("dplyr", quietly=TRUE, warn.conflicts = FALSE) # create live arena with only one dataset apartments <- DALEX::apartments arena <- create_arena(live=TRUE) %>% push_dataset(apartments, "m2.price", "apartment") print(arena)#> ===== Live Arena Summary ===== #> Observations: #> Variables: construction.year, surface, floor, no.rooms, district #> Models: #> Datasets: apartment #> Remember to start server with run_server(arena)# add another dataset HR <- DALEX::HR arena <- arena %>% push_dataset(HR, "status", "HR") print(arena)#> ===== Live Arena Summary ===== #> Observations: #> Variables: construction.year, surface, floor, no.rooms, district, gender and 4 more #> Models: #> Datasets: apartment, HR #> Remember to start server with run_server(arena)