The data preparation is done and now we take the produced matrices X_train and Y_train and use them for training a model. But of course, we need to create the model first. In this chapter, we will use a recurrent neural network with LSTM cells (Long Short-Term Memory). LSTM cells are better than plain RNN cells because they can capture long-term dependencies better.
Let us start with defining ...