I'm starting to use the caret package.
My study is about a prediction of historical financial series. I have a training period of 6 years for the input of a neural network. It is important that the input data follow the historical sequence.
I would like to use the caret
package without sampling, but with all the historical information.
I think that by default the function does sampling. I only saw options to change shape of sampling in function trControl()
.
My tuning would be the number of neurons and what input variables are best. I would like to change an activation function too.
Is it possible?
m <- train(Sepal.Length~.,
data = iris,
method = 'mlpWeightDecay',
metric = 'RMSE',
maxit=100,
tuneGrid = expand.grid(size=1:2, decay=1)
)