edit_model: Edit model within a model grid

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

smaakage85/modelgrid documentation built on May 30, 2019, 12:48 p.m.