Learn R Programming

xnet (version 0.1.11)

create_grid: Create a grid of values for tuning tskrr

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

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.

Value

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

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))

See Also

tune for tuning a tskrr model.

Examples

Run this code
# NOT RUN {
create_grid(lim = c(1e-4, 1), ngrid = 5)

# }

Run the code above in your browser using DataLab