2

What are the output shape of LSTM with Keras implementation when "return_sequences" equals to "True" or "False" ?

user3486308
  • 1,270
  • 5
  • 18
  • 28

1 Answers1

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