library(recipes)
rec_obj <- recipe(mpg ~ ., data = mtcars)
spec_tbl <- fast_regression_parsnip_spec_tbl(
.parsnip_fns = "linear_reg",
.parsnip_eng = c("lm","glm")
)
get_model(spec_tbl, 1)
get_model(spec_tbl, 1:2)
Run the code above in your browser using DataLab