Skip to contents

Returns the parameter grid used to tune a model.

Usage

tune_grid(obj, x, y, len)

Arguments

obj

A model or model specification.

x

Training data.

y

Response variable.

len

Number of parameter sets to generate.

Value

A data frame of tuning parameter combinations.

Examples

ds  <- gen_sample_dataset(D = c(5, 5, 5), nobs = 10)
mdl <- load_model("sda_notune")
tune_grid(mdl, ds$dataset$train_data, ds$design$y_train, len = 1)
#> Error in UseMethod("tune_grid"): no applicable method for 'tune_grid' applied to an object of class "list"