Skip to contents

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


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



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


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


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


A list object of workflows.


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.


Steven P. Sanderson II, MPH


#> Loading required package: dplyr
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>     filter, lag
#> The following objects are masked from 'package:base':
#>     intersect, setdiff, setequal, union
#> Attaching package: 'recipes'
#> The following object is masked from 'package:stats':
#>     step

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

#> # A workflow set/tibble: 2 × 4
#>   wflow_id            info             option    result    
#>   <chr>               <list>           <list>    <list>    
#> 1 recipe_linear_reg_1 <tibble [1 × 4]> <opts[0]> <list [0]>
#> 2 recipe_linear_reg_2 <tibble [1 × 4]> <opts[0]> <list [0]>