Reputation: 327
I have trained data set with ARIMA model ,while predicting I am struggling with below error.
start
argument could not be matched to a location
related to the index of the data.'Code:
model = ARIMA(train, order=(2, 0, 0))
model_fit = model.fit(disp=1)
start_index = valid.index.min()
end_index = valid.index.max()
#Predictions
predictions = model_fit.predict(start=start_index, end=end_index)
Upvotes: 2
Views: 2737
Reputation: 308
May be you could find some NA values in the data set. Filling those data points might get rid of the error.
Upvotes: 1
Reputation: 327
This error comes when there is missing value against date time in train data.
Upvotes: 1