# Add the GRU layer model.add(GRU(20, input_shape=(10, 10)))
SEQ_LEN = 60 X, y = create_sequences(data, SEQ_LEN)
# Define the hidden state h = T.matrix('h')
| Architecture | # Gates | Cell State | Best for | |--------------|---------|------------|-----------| | Simple RNN | 0 | No | Very short sequences | | LSTM | 3 | Yes | Long dependencies, complex data | | GRU | 2 | No | Smaller datasets, faster training |