create_grid {xnet} | R Documentation |
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. |
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
create_grid(lim = c(1e-4, 1), ngrid = 5)
[Package xnet version 0.1.11 Index]