Creates a recipe for training models.
Creates a recipe for training models.
make.recipe(envs, init, optim, fit, init.data, time.step, gate.open.min = 0, opts = NULL)
envs |
An array of weather factors to be taken into account
during the construction of models.
At the moment, the array |
init |
A string to specify the method to choose the initial parameters.
(One of |
optim |
A string to specify the method to be used for optimizing
the model parameters.
(One of |
fit |
A string to specify the method to be used for fixing
the linear regression coefficients.
(One of |
init.data |
Auxiliary data needed to perform the Init stage
using the method specified by the |
time.step |
An integer to specify the basic unit of time (in minute) for the transcriptomic models. Must be a multiple of the time step of weather data. |
gate.open.min |
The minimum opning length in minutes of the gate function for environmental inputs. |
opts |
An optional named list that specifies the arguments to be passed to methods that constitute each stage of the model training. Each key of the list corresponds to a name of a method. See examples for the supported options. |
An object representing the procedure to construct models.
## Not run: init.params <- .. # choose them wisely # Defined in Train.R: # default.opts <- list( # none = list(), # lm = list(maxit=1500, nfolds=-1), # nfolds for lm is simply ignored # lasso = list(maxit=1000, nfolds=10) # ) recipe <- FIT::make.recipe(c('wind', 'temperature'), init = 'manual', init.data = init.params, optim = c('lm', 'none', 'lasso'), fit = 'fit.lasso', time.step = 10, opts = list(lm = list(maxit = 900), lasso = list(maxit = 1000))) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.