param_grid: Define a parameter grid, to be explored through the fitting...

View source: R/param_grid.R

param_gridR Documentation

Define a parameter grid, to be explored through the fitting of resamples

Description

Define a parameter grid, to be explored through the fitting of resamples

Usage

param_grid(object, ...)

Arguments

object

of class resamples, created by a ⁠resample_***()⁠ function.

...

named vectors of parameters, the combinations of which will constitute the grid

Value

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.

Examples

rs <- resample_boot(mtcars, n=2)
param_grid(rs, eta=c(0.1, 0.5), max_depth=c(2, 4))

jiho/joml documentation built on Dec. 6, 2023, 5:50 a.m.