ParameterGrid | R Documentation |
Defines a tuning grid from a set of parameters.
ParameterGrid(...)
## S3 method for class 'param'
ParameterGrid(..., size = 3, random = FALSE)
## S3 method for class 'list'
ParameterGrid(object, size = 3, random = FALSE, ...)
## S3 method for class 'parameters'
ParameterGrid(object, size = 3, random = FALSE, ...)
... |
named |
size |
single integer or vector of integers whose positions or names match the given parameters and which specify the number of values used to construct the grid. |
random |
number of unique points to sample at random from the grid
defined by |
object |
list of named |
ParameterGrid
class object that inherits from
parameters
and TuningGrid
.
TunedModel
## GBMModel tuning parameters
grid <- ParameterGrid(
n.trees = dials::trees(),
interaction.depth = dials::tree_depth(),
random = 5
)
TunedModel(GBMModel, grid = grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.