generate_design_grid

0th

Percentile

Generate a Grid Design

Generate a grid with a specified resolution in the parameter space. The resolution for categorical parameters is ignored, these parameters always produce a grid over all their valid levels. For number params the endpoints of the params are always included in the grid.

Usage
generate_design_grid(param_set, resolution = NULL,
  param_resolutions = NULL)
Arguments
param_set

:: ParamSet.

resolution

:: integer(1) Global resolution for all Params.

param_resolutions

:: named integer() Resolution per Param, named by parameter ID.

Value

(data.table::data.table()).

See Also

Other generate_design: generate_design_lhs, generate_design_random

Aliases
  • generate_design_grid
Examples
# NOT RUN {
ps = ParamSet$new(list(
  ParamDbl$new("ratio", lower = 0, upper = 1),
  ParamFct$new("letters", levels = letters[1:3])
))
generate_design_grid(ps, 10)
# }
Documentation reproduced from package paradox, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.