
Last chance! 50% off unlimited learning
Sale ends in
Defines control parameters for a tuning grid.
TuningGrid(size = 3, random = FALSE)
TuningGrid
class object.
single integer or vector of integers whose positions or names match the parameters in a model's tuning grid and which specify the number of values used to construct the grid.
number of unique points to sample at random from the grid
defined by size
. If size
is a single unnamed integer, then
random = Inf
will include all values of all grid parameters in the
constructed grid, whereas random = FALSE
will include all values of
default grid parameters.
Returned TuningGrid
objects may be supplied to
TunedModel
for automated construction of model tuning grids.
These grids can be extracted manually and viewed with the
expand_modelgrid
function.
TunedModel
, expand_modelgrid
TunedModel(XGBTreeModel, grid = TuningGrid(10, random = 5))
Run the code above in your browser using DataLab