data-raw/penguins_simple.R

library(mlr3)
library(mlr3pipelines)
library(data.table)

task = tsk("penguins")
ids = complete.cases(task$data())
task$filter(which(ids))
graph = po("encode", method = "one-hot")
task = graph$train(list(task))$output
penguins_simple = task$data()
setDF(penguins_simple)

usethis::use_data(penguins_simple, overwrite = TRUE, compress = "xz")
mlr-org/mlr3data documentation built on Nov. 10, 2024, 10:40 a.m.