extract_tunable_params {tidyAML}R 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)


[Package tidyAML version 0.0.6 Index]