get_model | R Documentation |
Get a model from a tidyAML model tibble.
get_model(.data, .model_id = NULL)
.data |
The model table that must have the class |
.model_id |
The model number that you want to select, Must be an integer
or sequence of integers, ie. |
This function allows you to get a model or models 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.
A tibble with the chosen models.
Steven P. Sanderson II, MPH
Other Extractor:
extract_model_spec()
,
extract_regression_residuals()
,
extract_wflw()
,
extract_wflw_fit()
,
extract_wflw_pred()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.