
Last chance! 50% off unlimited learning
Sale ends in
Creates the needed caret::trainControl
object to control the training
splitting.
modl.trControl(initialWindow, horizon, fixedWindow, givenSummary = FALSE)
An integer. The initial number of consecutive values in each training set sample. Default value: 30.
An integer. The number of consecutive values in test set sample. Default value: 15.
A logical: if FALSE, the training set always start at the first sample and the training set size will vary over data splits. Default value: TRUE.
A logical. Indicates if it should be used the customized summaryFunction(?trainControl for more info) modl.sumFunction or not. Default is FALSE; this will use default caret
metrics.
trainControl object
We always split using method "timeslice", wich is the better for time series. More information on how this works on http://topepo.github.io/caret/data-splitting.html#data-splitting-for-time-series.
# NOT RUN {
modl.trControl(initialWindow=30,horizon=15,fixedWindow=TRUE,givenSummary=TRUE)
# }
Run the code above in your browser using DataLab