View source: R/internals-set-tune-modspec-args.R
internal_set_args_to_tune | R Documentation |
Make a tuned model specification object.
internal_set_args_to_tune(.model_tbl)
.model_tbl |
The model table that is generated from a function like
|
This will take a model specification that is created from a function
like fast_regression_parsnip_spec_tbl()
and update the model_spec
args
to tune::tune()
. This is done dynamically, meaning you do not need
to know the names of the parameters inside of the model specification.
A list object of workflows.
Steven P. Sanderson II, MPH
Other Internals:
internal_make_fitted_wflw()
,
internal_make_spec_tbl()
,
internal_make_wflw()
,
internal_make_wflw_gee_lin_reg()
,
internal_make_wflw_predictions()
,
make_classification_base_tbl()
,
make_regression_base_tbl()
library(dplyr)
mod_tbl <- fast_regression_parsnip_spec_tbl()
mod_tbl$model_spec[[1]]
updated_mod_tbl <- mod_tbl |>
mutate(model_spec = internal_set_args_to_tune(mod_tbl))
updated_mod_tbl$model_spec[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.