Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ParameterGrid

Tuning Parameters Grid


Description

Defines a tuning grid from a set of parameters.

Usage

ParameterGrid(...)

## S3 method for class 'param'
ParameterGrid(..., size = 3, random = FALSE, length = NULL)

## S3 method for class 'list'
ParameterGrid(x, size = 3, random = FALSE, length = NULL, ...)

## S3 method for class 'parameters'
ParameterGrid(x, size = 3, random = FALSE, length = NULL, ...)

Arguments

...

named param objects as defined in the dials package.

size

single integer or vector of integers whose positions or names match the given parameters and which specify the number of values to use in constructing a regular grid if random = FALSE; ignored otherwise.

random

number of unique grid points to sample at random or FALSE for all points from a regular grid defined by size.

length

deprecated argument; use size instead.

x

list of named param objects or a parameters object.

Value

ParameterGrid class object that inherits from parameters and Grid.

See Also

Examples

## GBMModel tuning parameters
grid <- ParameterGrid(
  n.trees = dials::trees(),
  interaction.depth = dials::tree_depth(),
  random = 5
)
TunedModel(GBMModel, grid = grid)

MachineShop

Machine Learning Models and Tools

v2.8.0
GPL-3
Authors
Brian J Smith [aut, cre]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.