grid_parameter_sampling: Define grid sampling over a hyperparameter search space

Description Usage Arguments Value See Also Examples

View source: R/hyperdrive.R

Description

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().

Usage

1
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

1
2
3
4
5
## Not run: 
param_sampling <- grid_parameter_sampling(list("num_hidden_layers" = choice(c(1, 2, 3)),
                                               "batch_size" = choice(c(16, 32))))

## End(Not run)

azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.