extract_tunable_params: Extract Tunable Parameters from Model Specifications

View source: R/extract-tunable-params.R

extract_tunable_paramsR Documentation

Extract Tunable Parameters from Model Specifications

Description

Extract a list of tunable parameters from the .model_spec column of a tidyaml_mod_spec_tbl.

Usage

extract_tunable_params(.model_tbl)

Arguments

.model_tbl

A model table with a class of tidyaml_mod_spec_tbl.

Details

This function iterates over the .model_spec column of a model table and extracts tunable parameters for each model using tunable(). The result is a list that can be further processed into a tibble if needed.

Value

A list of tibbles, each containing the tunable parameters for a model.

See Also

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

Examples

library(dplyr)
mods <- fast_regression_parsnip_spec_tbl(
  .parsnip_fns = "linear_reg",
  .parsnip_eng = c("lm","glmnet")
  )
extract_tunable_params(mods)


tidyAML documentation built on June 8, 2025, 10:02 a.m.