Submitted by ng_guardian t3_11or4qb in MachineLearning
I trained my ARIMA model by doing the following
from statsmodels.tsa.arima.model import ARIMA
model_ar = ARIMA(data.Num_Passengers, order=(1,0, 0))
results_ar = model_ar.fit()results_ar.summary()
​
The code worked with the resulting output
​
But then I tried predicting on the testing dataset, and I got the following error.
​
Am I just messing something up, is anyone else dealing with this error?
Is there another way to use the predict function, or is it really unimplemented.
Could you please help me out with this?
How would I overwrite the method?
Toilet_Assassin t1_jbujz0i wrote
Read the documentation, you are using it incorrectly.