I see this code concept(with Keras library) in most code examples of LSTM
:
model.add(LSTM(X))
model.add(Dense(Y))
But I don't really know if I have 10 time-steps in input side and need the last time-step in output is the following code true?
model.add(LSTM(10))
model.add(Dense(1))
Or if I have 10 input time-steps and need 10 output time-steps(I mean I need all outputs from all units) is the following code true?
model.add(LSTM(10))
model.add(Dense(10))
How should I specify if I have 1 layer LSTM
with 10 units, I need all of 10 outputs? Or I need 1 last output from unit 10? Or the last 5 outputs from unit 5 to 10?
LSTM( X , return_sequences=True )
. This will return all the sequences. $\endgroup$ – Shubham Panchal Mar 1 '19 at 12:19Dense()
layer afterLSTM(10 , return_sequences = True)
layer to get the sequences or not? I also don't know how to get the complete sequence and split some part of it? $\endgroup$ – user145959 Mar 1 '19 at 15:54