create_grid: Create a grid of values for tuning tskrr

Description Usage Arguments Details Value See Also Examples

View source: R/create_grid.R

Description

This function creates a grid of values for tuning a tskrr model. The grid is equally spaced on a logarithmic scale. Normally it's not needed to call this method directly, it's usually called from tune.

Usage

1
create_grid(lim = c(1e-04, 10000), ngrid = 10)

Arguments

lim

a numeric vector with 2 values giving the lower and upper limit for the grid.

ngrid

the number of values that have to be produced. If this number is not integer, it is truncated. The value should be 2 or larger.

Details

The lim argument sets the boundaries of the domain in which the lambdas are sought. The lambda values at which the function is evaluated, are calculated as:

exp(seq(log(1e-4), log(1e4), length.out = ngrid))

Value

a numeric vector with values evenly spaced on a logarithmic scale.

See Also

tune for tuning a tskrr model.

Examples

1
create_grid(lim = c(1e-4, 1), ngrid = 5)

xnet documentation built on Feb. 4, 2020, 9:10 a.m.