I’m trying to train LSTM model with multiple feature inputs and 1 output.
I get the following error
non-broadcastable output operand with shape (90,1) doesn’t match the broadcast shape (90,2)
model = Sequential()
model.add(LSTM(units=50, return_sequences=True, input_shape=(sequence_length, num_features)))
model.add(LSTM(units=50))
model.add(Dense(units=1))
model.compile(optimizer='adam', loss='mse')
return model
How can i resolve this error.