-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Division by Zero error #32
Comments
Hi @tackes! Would it be possible for you to share with us any time series that gives you the error? To try to replicate and debug it :) |
The issue is with short time series. The below will return 2 errors -
In the code sample, once removing the 'test' period, it will only have 1 data point to do calculations. `data = {'unique_id': ['A','A','A','A','A'], series_test = test_df.groupby('unique_id').tail(horizon).copy() series = series.set_index('unique_id') fcst = StatsForecast(df=series, models=models, freq='M', n_jobs=1) |
@all-contributors please add @tackes for bug |
I've put up a pull request to add @tackes! 🎉 |
division by zero Get this error as well quite frequently, StatsForecast( unique_id ds y unique_id
unique_id
unique_id |
When running on many groups of time series, some groups are giving me a 'division by zero' error, and the script stops.
Is there a way to pass through this error and complete the forecasts without errors?
The text was updated successfully, but these errors were encountered: