So I’m trying to create a bidirectional LSTM and I have this code
model.add(Bidirectional(LSTM(5, return_sequences=True), input_shape=X.shape[1]))
I keep getting the following error,
TypeError: ‘int’ object is not iterable
it is over the input_shape parameter, but I’m confused on how to fix it.
The shape of the input is (494021, 118)
The shape of the output is (494021, 5)
submitted by /u/echaney456
[visit reddit] [comments]