extract_wflw: Extract A Model Workflow

View source: R/extract-wflw.R

extract_wflwR Documentation

Extract A Model Workflow

Description

Extract a model workflow from a tidyAML model tibble.

Usage

extract_wflw(.data, .model_id = NULL)

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 or c(1,3,5) or 1:2

Details

This function allows you to get a model workflow 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.

Value

A tibble with the chosen model workflow(s).

Author(s)

Steven P. Sanderson II, MPH

See Also

Other Extractor: extract_model_spec(), extract_regression_residuals(), extract_wflw_fit(), extract_wflw_pred(), get_model()

Examples

library(recipes)

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

extract_wflw(frt_tbl, 1)
extract_wflw(frt_tbl, 1:2)


tidyAML documentation built on May 29, 2024, 4:07 a.m.