powered by
Defines a tuning grid from a set of parameters.
ParameterGrid(..., length = 3, random = FALSE)
parameters object, named param objects as defined in the dials package, or a list of these.
parameters
param
single number or vector of numbers of parameter values to use in constructing a regular grid if random = FALSE; ignored otherwise.
random = FALSE
number of unique grid points to sample at random or FALSE for all points from a regular grid defined by length.
FALSE
length
ParameterGrid class object that inherits from parameters and Grid.
ParameterGrid
Grid
TunedModel
# 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