Learn R Programming

MachineShop (version 1.1.0)

expand.model: Model Expansion Over a Grid of Tuning Parameters

Description

Expand a model over all combinations of a grid of tuning parameters.

Usage

expand.model(x, ...)

Arguments

x

MLModel function, function name, or object.

...

vectors, factors, or a list containing the parameter values.

Value

A list of MLModel objects created from the parameter combinations.

See Also

modelinfo, tune

Examples

Run this code
# NOT RUN {
expand.model(GBMModel, n.trees = c(25, 50, 100),
                       interaction.depth = 1:3,
                       n.minobsinnode = c(5, 10))

# }

Run the code above in your browser using DataLab