Unclear error when doing auto-regression with too many forecasts and lags. #1257
Closed
pzaika
started this conversation in
Feature Requests & Feedback
Replies: 2 comments
-
Thanks for pointing that out. We will check back on it (see new issue) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using auto-regression with a dataset that is smaller than the requested number of forecasts + lags (specifically when n_samples = len(df) - max_lags + 1 - n_forecasts is not positive) the fit method throws an IndexError. This hides the real problem, which is that the user is trying to train a model on not enough data. I think that it would be better to raise an error which tells the user to lower the number of forecasts or lags they are asking for.
Beta Was this translation helpful? Give feedback.
All reactions