create_model_spec {tidyAML} | R Documentation |
Generate Model Specification calls to parsnip
Description
Creates a list/tibble of parsnip model specifications.
Usage
create_model_spec(
.parsnip_eng = list("lm"),
.mode = list("regression"),
.parsnip_fns = list("linear_reg"),
.return_tibble = TRUE
)
Arguments
.parsnip_eng |
The input must be a list. The default for this is set to |
.mode |
The input must be a list. The default is 'regression' |
.parsnip_fns |
The input must be a list. The default for this is set to |
.return_tibble |
The default is TRUE. FALSE will return a list object. |
Details
Creates a list/tibble of parsnip model specifications. With this function
you can generate a list/tibble output of any model specification and engine you
choose that is supported by the parsnip
ecosystem.
Value
A list or a tibble.
Author(s)
Steven P. Sanderson II, MPH
See Also
Other Model_Generator:
fast_classification()
,
fast_regression()
Examples
create_model_spec(
.parsnip_eng = list("lm","glm","glmnet","cubist"),
.parsnip_fns = list(
"linear_reg","linear_reg","linear_reg",
"cubist_rules"
)
)
create_model_spec(
.parsnip_eng = list("lm","glm","glmnet","cubist"),
.parsnip_fns = list(
"linear_reg","linear_reg","linear_reg",
"cubist_rules"
),
.return_tibble = FALSE
)