param_grid | R Documentation |
Define a parameter grid, to be explored through the fitting of resamples
param_grid(object, ...)
object |
of class resamples, created by a |
... |
named vectors of parameters, the combinations of which will constitute the grid |
An object of class resamples_grid
, with one row per combination of
parameters value x resample (i.e. row of object). This can then be input to
xgb_fit()
for training.
rs <- resample_boot(mtcars, n=2)
param_grid(rs, eta=c(0.1, 0.5), max_depth=c(2, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.