Model Target

tar_model(name, model, ..., tar_args = list())

Arguments

name

Name of target

model

Parsnip model function.

...

Additional functions that model is passed to.

tar_args

Arguments passed to tar_target.

Value

A tar_target object.

Examples

if (FALSE) { # Create a ranger model that is saved to a .qs tar_model( make_model_rf, rand_forest, set_mode("regression"), set_engine("ranger"), tar_args = list(format = "qs") ) # Create a nnet neural network model tar_model( make_model_mlp, mlp, set_args(hidden_units = 5), set_engine("nnet"), set_mode("regression") ) }