-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
i
index overwritten in _arma_predict_out_of_sample
#3797
Comments
No idea, maybe an ancient left-over It might have been used as a shift in the start index for the multistep forecast loop in an older version. I don't really understand the code, and whenever I need to look into it, it takes me hours to figure out what is or should be going on, especially with this kind of updating loops over parts of arrays. the part looks like it can be removed |
OK, I'll add this to my list of things to figure out. Tentatively it may be that the loop a few lines below the quoted section may be intended to use
Best guess is that the two loops should each have non- |
check test coverage and an example, |
Just glancing at this and thinking back. It's possible that the first loop
never runs. Hence the initialization for the second loop. Sorry, should
have left code comments here.
…On Wed, Jun 28, 2017, 10:52 PM Josef Perktold ***@***.***> wrote:
check test coverage and an example,
It's often faster to verify that the code "works" even if it is very
difficult and time consuming to figure out why it does what it does.
e.g. in this case the indexing depends a lot on whether and where the
local endog and resid have already been trimmed. (IIRC from related code
then endog and resid start with a past of max(p, q) or max(k_ar, k_ma)
observations )
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3797 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASE5AySJHAJ2u2KUQ_dbKb2PGCEgKJtks5sIsszgaJpZM4OIhuO>
.
|
Just trying it out, the first loop definitely does run. Moreover, changing the indexes in both loops from Is the following plausible: the initialization is there specifically in case the first loop doesn't run. The second loop runs over |
Should I bother trying to track this down? |
Hey, sorry my comment wasn't clear. Your plausible is correct. |
@jseabold if I put together a PR for this will you take point on getting it merged? There's a backlog and I don't want to add to jpkt's queue. |
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tsa/arima_model.py#L338
i
is set and then promptly ignored. Any idea what it is supposed to do? If it helps,q
here is an alias fork_ma
.The text was updated successfully, but these errors were encountered: