Understanding Keras LSTMs: Role of Batch-size and Statefulness
Let me explain it via an example: So let’s say you have the following series: 1,2,3,4,5,6,…,100. You have to decide how many timesteps your lstm will learn, and reshape your data as so. Like below: if you decide time_steps = 5, you have to reshape your time series as a matrix of samples in this … Read more