Data Science, Machine Learning, Time Series Forecasting, Lstm, Deep Learning.
return np.array(X), np.array(y) Now, not only the features but also the targets have diagonal repetitions, meaning that to compare with the time series, we either have to average them or select one of the predictions. In the codes below, the results of the first, last, and mean predictions are