Learn R Programming

tidyAML (version 0.0.6)

create_model_spec: 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
)

Value

A list or a tibble.

Arguments

.parsnip_eng

The input must be a list. The default for this is set to all. This means that all of the parsnip linear regression engines will be used, for example lm, or glm.

.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 all. This means that all of the parsnip linear regression functions will be used, for example linear_reg(), or cubist_rules.

.return_tibble

The default is TRUE. FALSE will return a list object.

Author

Steven P. Sanderson II, MPH

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.

See Also

Other Model_Generator: fast_classification(), fast_regression()

Examples

Run this code
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
 )

Run the code above in your browser using DataLab