Grid sampling performs a simple grid search over all feasible values in the defined search space. It can only be used with hyperparameters specified using choice().

grid_parameter_sampling(parameter_space)

Arguments

parameter_space

A named list containing each parameter and its distribution, e.g. list("parameter" = distribution).

Value

The GridParameterSampling object.

See also

choice()

Examples

if (FALSE) { param_sampling <- grid_parameter_sampling(list("num_hidden_layers" = choice(c(1, 2, 3)), "batch_size" = choice(c(16, 32)))) }