<p># RNN cell</p><p>model.add(SimpleRNN(</p><p> # for batch_input_shape, if using tensorflow as the backend, we have to put None for the batch_size.</p><p> # Otherwise, model.evaluate() will get error.</p><p> batch_input_shape=(None, TIME_STEPS, INPUT_SIZE), # Or: input_dim=INPUT_SIZE, input_length=TIME_STEPS,</p><p> output_dim=CELL_SIZE,</p><p> unroll=True,</p><p>))</p>