# grid_regular

##### Create grids of tuning parameters

Random and regular grids can be created for any number of parameter objects.

##### Usage

`grid_regular(..., levels = 3, original = TRUE)`grid_random(..., size = 5, original = TRUE)

##### Arguments

- ...
One or more

`param`

objects (such as`mtry()`

or`penalty()`

). None of the objects can have`unknown()`

values in the parameter ranges or values.- levels
An integer for how many value of each parameter will be used to make the regular grid?

`levels`

can be a single integer or a vector of integers that is the same length as the number of parameters in`...`

.- original
A logical: should the parameters be in the original units or in the transformed space (if any)?

- size
A single integer for the total number of parameter values returned for the random grid.

##### Value

A tibble with an additional class for the type of type of grid ("grid_regular" or "grid_random"). There are columns for each parameter and a row for every parameter or parameter combination.

##### Examples

```
# NOT RUN {
# Will fail due to unknowns:
# grid_regular(mtry, min_n)
grid_regular(penalty, mixture)
grid_regular(penalty, mixture, levels = c(3, 4))
grid_random(penalty, mixture)
# }
```

*Documentation reproduced from package dials, version 0.0.2, License: GPL-2*