Learn R Programming

MachineShop (version 2.0.0)

ParameterGrid: Tuning Parameters Grid

Description

Defines a tuning grid from a set of parameters.

Usage

ParameterGrid(..., length = 3, random = FALSE)

Arguments

...

parameters object, named param objects as defined in the dials package, or a list of these.

length

single number or vector of numbers of parameter values to use in constructing a regular grid if random = FALSE; ignored otherwise.

random

number of unique grid points to sample at random or FALSE for all points from a regular grid defined by length.

Value

ParameterGrid class object that inherits from parameters and Grid.

See Also

TunedModel

Examples

Run this code
# NOT RUN {
## GBMModel tuning parameters
library(dials)

grid <- ParameterGrid(
  n.trees = trees(),
  interaction.depth = tree_depth(),
  random = 5
)
TunedModel(GBMModel, grid = grid)

# }

Run the code above in your browser using DataLab