I have an input array of shape (1000,20, 4) and output(labels) of shape (1000,25,1). But don't know how to use Keras LSTM library to build a sequential model for this!
Can someone help me design a simple LSTM for doing that? (I tried to use RepeatVector()
and TimeDistributed(Dense())
in several ways but I get errors like the following:
model = Sequential()
model.add(LSTM(units = un , input_shape = (20, 4), return_sequences = False))
model.add(RepeatVector(25))
model.add(LSTM(un , return_sequences=True))
model.add(TimeDistributed(Dense(20)))
ValueError: Error when checking target: expected lstm_419 to have shape (25, 20) but got array with shape (25, 1)
Dense( 20 )
toDense( 1 )
. $\endgroup$