AR_predict FOR FORECASTING ARIMA MODEL

AR_predict=AR_predict.cumsum().shift().fillna(0) AR_predict1=pd.Series(np.ones(valid.shape[0]) * np.log(valid[‘Count’])[0], index = valid.index)
AR_predict1=AR_predict1.add(AR_predict,fill_value=0)
AR_predict = np.exp(AR_predict1)

Can you please explain the above code?

© Copyright 2013-2019 Analytics Vidhya