ParameterGrid {MachineShop} | R Documentation |
Defines a tuning grid from a set of parameters.
ParameterGrid(...) ## S3 method for class 'param' ParameterGrid(..., size = 3, random = FALSE, length = NULL) ## S3 method for class 'list' ParameterGrid(x, size = 3, random = FALSE, length = NULL, ...) ## S3 method for class 'parameters' ParameterGrid(x, size = 3, random = FALSE, length = NULL, ...)
... |
named |
size |
single integer or vector of integers whose positions or names
match the given parameters and which specify the number of values to use in
constructing a regular grid if |
random |
number of unique grid points to sample at random or
|
length |
deprecated argument; use |
x |
list of named |
ParameterGrid
class object that inherits from
parameters
and Grid
.
## GBMModel tuning parameters grid <- ParameterGrid( n.trees = dials::trees(), interaction.depth = dials::tree_depth(), random = 5 ) TunedModel(GBMModel, grid = grid)