# 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)))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab