I'm having trouble with preparing input data for RNN on Keras.
Currently, my training data dimension is: (6752, 600, 13)
- 6752: number of training data
- 600: number of time steps
- 13: size of feature vectors (the vector is in float)
X_train
and Y_train
are both in this dimension.
I want to prepare this data to be fed into SimpleRNN
on Keras.
Suppose that we're going through time steps, from step #0 to step #599.
Let's say I want to use input_length = 5
, which means that I want to use recent 5 inputs. (e.g. step #10, #11,#12,#13,#14 @ step #14).
How should I reshape X_train
?
should it be (6752, 5, 600, 13)
or should it be (6752, 600, 5, 13)
?
And what shape should Y_train
be in?
Should it be (6752, 600, 13)
or (6752, 1, 600, 13)
or (6752, 600, 1, 13)
?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…