-
Notifications
You must be signed in to change notification settings - Fork 26
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
max_q must be strictly positive? (auto arima) #315
Comments
We can rewrite those asserts @assert max_p > 0
@assert max_q > 0
@assert max_d > 0
@assert max_P > 0
@assert max_D > 0
@assert max_Q > 0
@assert max_order > 0 There is no reason for them to be strictly positive |
I changed the following line in the auto_arima function: @Assert max_q >= 0 Changing ">" to ">=" allows me to call auto_arima with max_q=0 (my intention is to pick up the best AR model):
However, the model chosen by auto_arima is p=2; d=0; q=2:
Obviously, (2, 0, 2) doesn't satisfy the requirement of max_q=0.
I guess the two instances of “-1:1" in code below need to be changed.
|
Hi @dazhwu thanks for the tests, I will merge this PR tomorrow and release a new version with the fixes. If you want to test it right now you can add the specific branch of the fix |
What if I just want to pick up the optimal p given that both d and q are zero?
In R, I could set max.q =0.
The text was updated successfully, but these errors were encountered: