2

Why we are getting this error when we predict or forecast using Statsmodels " SARIMAX "?. I am just passing the start and end of Index and steps that need to take into consideration.

Either use the below line to execute: 

results = model.fit()
predictions= results.predict(start =train_size, end=train_size+test_size+(steps)-1)
(Or)
forecast_= results.forecast(steps=test_size-1)

Is there any proper way to neglect the warning message?

**

Want to understand in detail the warning. Hope will get it.

**.

Devendran
  • 21
  • 1
  • 4

1 Answers1

0

I had the same problem. What I have observed in my case is, in the series of Date or Datetime data I had, some days were missing. For e.g. I am looking into support ticket volume prediction and I had no tickets on the day of Christmas hence 25th December was missing in my data. That gap caused the issue. So, I took my start date and tried to put all dates in scope, in Excel (you mention 2 or 3 consecutive days and then drag down the column, easy) and found that I had total 5 days missing. Once I used the suggestion provided in below link, I got out of the problem.

Fill the missing date values in a Pandas Dataframe column

Note: Once you do the ffill or bfill, the date index becomes another column. So, you set date index again.

Dharman
  • 26,923
  • 21
  • 73
  • 125
Noel
  • 57
  • 3