It can be difficult to understand how to prepare your sequence data for input to an LSTM model.
Often there is confusion around how to define the input layer for the LSTM model.
There is also confusion about how to convert your sequence data that may be a 1D or 2D matrix of numbers to the required 3D format of the LSTM input layer.
In this tutorial, you will discover how to define the input layer to LSTM models and how to reshape your loaded input data for LSTM models.
After completing this tutorial, you will know:
How to define an LSTM input layer.
How to reshape a one-dimensional sequence data for an LSTM model and define the input layer.
How to reshape multiple parallel series data for an LSTM model and define the input layer.
Let’s get started.