Machine Learning, Neural Networks, Forecasting, Data Analysis, Time Series Analysis.
where n is look back. So if our data is like this, [2, 3, 4, 5, 4, 6, 7, 6, 8, 9] the required data format (n=3) would be this: [2, 3, 4] -> [5] [3, 4, 5] -> [4] [4, 5, 4] -> [6] [5, 4, 6] -> [7] [4, 6, 7] -> [6] [6, 7, 6] -> [8] [7, 6, 8] -> [9] Phew 😓. Luckily, there is a module in Keras that