These generics are used to extract elements from various model objects. Methods are defined in other packages, such as tune, workflows, and workflowsets, but the returned object is always the same.
extract_fit_engine()
returns the engine specific fit embedded within a parsnip model fit. For example, when usingparsnip::linear_reg()
with the"lm"
engine, this returns the underlyinglm
object.extract_fit_parsnip()
returns a parsnip model fit.extract_mold()
returns the preprocessed "mold" object returned frommold()
. It contains information about the preprocessing, including either the prepped recipe, the formula terms object, or variable selectors.extract_spec_parsnip()
returns a parsnip model specification.extract_preprocessor()
returns the formula, recipe, or variable expressions used for preprocessing.extract_recipe()
returns a recipe, possibly estimated.extract_workflow()
returns a workflow, possibly fit.extract_parameter_dials()
returns a single dials parameter object.extract_parameter_set_dials()
returns a set of dials parameter objects.extract_fit_time()
returns a tibble with fit times.
Usage
extract_workflow(x, ...)
extract_recipe(x, ...)
extract_spec_parsnip(x, ...)
extract_fit_parsnip(x, ...)
extract_fit_engine(x, ...)
extract_mold(x, ...)
extract_preprocessor(x, ...)
extract_postprocessor(x, ...)
extract_parameter_dials(x, ...)
extract_parameter_set_dials(x, ...)
extract_fit_time(x, ...)