model.add(keras.layers.SimpleRNN(init='uniform', output_dim=1, input_dim=100))
model.compile(loss='mse', optimizer='sgd')
X_train = np.random.rand(300, 1, 100)
y_train = np.random.rand(300)
model.fit(X=X_train, y=y_train, batch_size=32, show_accuracy=True)
Python/Keras - Wrong number of dimensions: expected 3, got 2 with shape (119, 80)