Extract a model specification from a tidyAML model tibble.
Arguments
- .data
The model table that must have the class
tidyaml_mod_spec_tbl
.- .model_id
The model number that you want to select, Must be an integer or sequence of integers, ie.
1
orc(1,3,5)
or1:2
Details
This function allows you to get a model specification or more from
a tibble with a class of "tidyaml_mod_spec_tbl". It allows you to select the
model by the .model_id
column. You can call the model id's by an integer
or a sequence of integers.
See also
Other Extractor:
extract_regression_residuals()
,
extract_wflw()
,
extract_wflw_fit()
,
extract_wflw_pred()
,
get_model()
Examples
spec_tbl <- fast_regression_parsnip_spec_tbl(
.parsnip_fns = "linear_reg",
.parsnip_eng = c("lm","glm")
)
extract_model_spec(spec_tbl, 1)
#> [[1]]
#> Linear Regression Model Specification (regression)
#>
#> Computational engine: lm
#>
#>
extract_model_spec(spec_tbl, 1:2)
#> [[1]]
#> Linear Regression Model Specification (regression)
#>
#> Computational engine: lm
#>
#>
#> [[2]]
#> Linear Regression Model Specification (regression)
#>
#> Computational engine: glm
#>
#>