edit_model {modelgrid}R Documentation

Edit model within a model grid

Description

Modify an existing model (and training) specification in a model grid.

Usage

edit_model(model_grid, model_name, ...)

Arguments

model_grid

model_grid

model_name

character, the unique name (as set by the user) of the model, that should be modified.

...

All the model (and model training) settings you want to modify for an existing model specification.

Value

model_grid

Examples

library(magrittr)

# Create model grid and add random forest model.
mg <-
  model_grid() %>%
  add_model(model_name = "Random Forest Test", method = "rf", tuneLength = 5)

# Edit the size of tuning grid of the random forest model.
edit_model(mg, model_name = "Random Forest Test", tuneLength = 10)

[Package modelgrid version 1.2.0 Index]