Simplest Lstm training with Keras io
I would like to create the simplest LSTM there is using keras python library. I have the following code: import pandas as pd import numpy as np from keras.models import Sequential from keras.layers.core import Dense, Activation from keras.layers.recurrent import LSTM X_train = pd.DataFrame( np.array([ [1, 2], [3, 4], [5, 6], [7, 8], [5.1, 6.1], [7.1, 8.1] ])) y_train = pd.DataFrame( np.array([1, 2, 3, 4, 3, 4]) ) X_test = pd.DataFrame( np.array([ [1.1, 2.1], [3.1, 4.1] ]) ) y_test = pd.DataFrame( np.array([1, 2]) ) model = Sequential() model.add(LSTM( output_dim = 10, return_sequences=False,