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?