Finance, Python, Deep Learning, Analytics, Artificial Intelligence.
predictions = list() for t in range(len(test)): # Generate a prediction yhat = arima_forecast(history) predictions.append(yhat) # Add the predicted value to the training set obs = test[t] history.append(obs) Now that we have generated our predictions, we can visualize them alongside the actual data