create_workflow_set {tidyAML}R Documentation

Create a Workflow Set Object

Description

Create a workflow set object tibble from a model spec tibble.

Usage

create_workflow_set(.model_tbl = NULL, .recipe_list = list(), .cross = TRUE)

Arguments

.model_tbl

The model table that is generated from a function like fast_regression_parsnip_spec_tbl(). The model spec column will be grabbed automatically as the class of the object must be tidyaml_base_tbl

.recipe_list

Provide a list of recipes here that will get added to the workflow set object.

.cross

The default is TRUE, can be set to FALSE. This is passed to the cross parameter as an argument to the workflow_set() function.

Details

Create a ⁠workflow set⁠ object/tibble from a model spec tibble where the object class type is tidyaml_base_tbl. This function will take in a list of recipes and will grab the model specifications from the base tibble to create the workflow sets object. You can also supply the logical of TRUE/FALSe the .cross parameter which gets passed to the corresponding parameter as an argumnt to the workflowsets::workflow_set() function.

Value

A list object of workflows.

Author(s)

Steven P. Sanderson II, MPH

See Also

https://workflowsets.tidymodels.org/

Other Utility: core_packages(), create_splits(), fast_classification_parsnip_spec_tbl(), fast_regression_parsnip_spec_tbl(), full_internal_make_wflw(), install_deps(), load_deps(), match_args()

Examples

library(recipes)

rec_obj <- recipe(mpg ~ ., data = mtcars)
spec_tbl <- fast_regression_parsnip_spec_tbl(
  .parsnip_fns = "linear_reg",
  .parsnip_eng = c("lm","glm")
)

create_workflow_set(
  spec_tbl,
  list(rec_obj)
)


[Package tidyAML version 0.0.5 Index]