How to use 'MiniBatchSite' with time-series sequences in "trainNetwork"?
Show older comments
I have a time series 'T' which I would like to forecast with an LSTM network. While the code runs without errors, I do not quite seem to get the results I would expect.
In particular, the parameter 'MiniBatchSize' seemingly has no impact on the training. In fact, the number of epochs and iterations in the command window move in sync, i.e. there seems to be no difference between the two.
For simplification, let us assume that my data looks like this:
T is of dimension (1, 2500)
P is of dimension (10, 2500)
Hence, for each time step in T there exist 10 corresponding observations / explanatory input variables in P. Each P(i, :) represents a time series as well.
layers =
1x4 Layer array with layers:
1 '' Sequence Input Sequence input with 10 dimensions
2 '' LSTM LSTM with 100 hidden units
3 '' Fully Connected 1 fully connected layer
4 '' Regression Output mean-squared-error
I then call this to train the network:
[net, trainingRecord] = trainNetwork(P, T, layers, opts);
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!