input = np.random.rand(8, 4)
nb_timesteps = 3
nb_sequences = input.shape[0] - nb_timesteps
input_3D = np.array([input[i:i + nb_timesteps] for i in range(nb_sequences)])
Python/Keras/SimpleRNN - Wrong number of dimensions on model.fit