Model Target
tar_model(name, model, ..., tar_args = list())
name | Name of target |
---|---|
model | Parsnip model function. |
... | Additional functions that |
tar_args | Arguments passed to |
A tar_target
object.
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") ) }