Learn R Programming

paradox (version 0.7.1)

generate_design_grid: Generate a Grid Design

Description

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
resolution

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

param_resolutions

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

Value

Design.

See Also

Other generate_design: generate_design_lhs(), generate_design_random()

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab