An RNN, in keras, accepts an input with the following shape
array([[['Xa0', 'Ya0'],
['Xa1', 'Ya1'],
['Xa2', 'Ya2']],
[['Xb0', 'Yb0'],
['Xb1', 'Yb1'],
['Xb2', 'Yb2']],
[['Xc0', 'Yc0'],
['Xc1', 'Yc1'],
['Xc2', 'Yc2']]], dtype='<U3')
The numbers are associated with the time steps (3 in our case), and X,Y are features. We have 3 batches (a,b,c).
Which order should I use:
and why?
What do you want to infer from the data?
Any order is ok. Use the one that gives your network the best result. There is even the possibility of using Bidirectional
layers, that will read the data both from past to present and from present to past.
Use the order that leads to the steps you want to predict.