Skip to content
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

fix arima max order params #613

Merged
merged 1 commit into from
Aug 19, 2023
Merged

fix arima max order params #613

merged 1 commit into from
Aug 19, 2023

Conversation

jmoralez
Copy link
Member

@jmoralez jmoralez commented Aug 18, 2023

The max_p and max_q parameters are set using the series length, which is computed using numpy.sum and returns a numpy.int64. However, there's a later check to verify that these parameters are int, which can fail for short series, see for example #602 (comment).

This ensures that the series length is a python int, so that those parameters are python ints as well.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@AzulGarza AzulGarza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jmoralez! LGTM :)

@AzulGarza AzulGarza merged commit c5702cf into main Aug 19, 2023
16 checks passed
@AzulGarza AzulGarza deleted the fix/arima-order branch August 19, 2023 01:03
@jmoralez jmoralez added the fix label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants