Data Science, Machine Learning, Time Series Forecasting, Lstm, Deep Learning.
just like a conventional forecasting algorithm: The following loop does this: # Iterative prediction and substitution for i in range(len(X_test)): forecasts[i] = model.predict(X_test[i].reshape(1, look_back, 1)) if i != len(X_test)-1: X_test[i+1,look_back-1] = forecasts[i] for j in