What are the output shape of LSTM with Keras implementation when "return_sequences" equals to "True" or "False" ?
Asked
Active
Viewed 895 times
2
user3486308
- 1,270
- 5
- 18
- 28
1 Answers
2
Assuming your output state size is h. You will generate nxh for n data points if return_sequences is false. On the other hand you would be having nxtxh dimensional array as output if return_sequences is set to true. Here t is the number of timestamps in each data point.
Kiritee Gak
- 1,799
- 1
- 11
- 25
return_sequences=True/Falsedoesn't change the 3D array output shape? – user3486308 Mar 02 '19 at 11:08h. – user3486308 Mar 02 '19 at 13:37