Learn R Programming

MachineShop (version 2.8.0)

Grid: Tuning Grid Control

Description

Defines control parameters for a tuning grid.

Usage

Grid(size = 3, random = FALSE, length = NULL)

Arguments

size

single integer or vector of integers whose positions or names match the parameters in a model's tuning grid and which specify the number of values to use in constructing the grid.

random

number of unique grid points to sample at random, Inf for all random points, or FALSE for all fixed points.

length

deprecated argument; use size instead.

Value

Grid class object.

Details

Returned Grid objects may be supplied to TunedModel for automated construction of model tuning grids. These grids can be extracted manually and viewed with the expand_modelgrid function.

See Also

TunedModel, expand_modelgrid

Examples

Run this code
# NOT RUN {
TunedModel(GBMModel, grid = Grid(10, random = 5))

# }

Run the code above in your browser using DataLab