ParameterGrid {MachineShop} | R Documentation |
Tuning Parameters Grid
Description
Defines a tuning grid from a set of parameters.
Usage
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, ...)
Arguments
... |
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 |
Value
ParameterGrid
class object that inherits from
parameters
and TuningGrid
.
See Also
Examples
## GBMModel tuning parameters
grid <- ParameterGrid(
n.trees = dials::trees(),
interaction.depth = dials::tree_depth(),
random = 5
)
TunedModel(GBMModel, grid = grid)
[Package MachineShop version 3.7.0 Index]