-
Notifications
You must be signed in to change notification settings - Fork 293
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
[ARIMA] Incorrect computation of n #690
Labels
Comments
@jmoralez Can I work on this issue? |
Hey @StatKumar. Sure, go ahead! We have a contributing guide here but feel free to ask any questions. We also have the bug here: statsforecast/statsforecast/arima.py Lines 1483 to 1485 in be9db75
and here: statsforecast/statsforecast/arima.py Lines 1815 to 1817 in be9db75
The fix would be adding a +1 to the lastnonmiss , i.e. lastnonmiss = missing_idxs.max() + 1 so that the last index is considered in the slice below.
|
Thank you @jmoralez |
StatKumar
added a commit
to StatKumar/statsforecast
that referenced
this issue
Nov 24, 2023
StatKumar
added a commit
to StatKumar/statsforecast
that referenced
this issue
Nov 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened + What you expected to happen
n
here won't have the number of non NA values, but the number minus 1, because the end of the slice isn't included. This was originally reported in #654 since if there's a single sample thenn=0
and then we try to take its log.statsforecast/statsforecast/arima.py
Lines 1212 to 1214 in be9db75
Versions / Dependencies
1.6.0
Reproduction script
Issue Severity
None
The text was updated successfully, but these errors were encountered: