Skip to content

fix(arima): keep seasonal period in search_arima fallback (#1276) - #1285

Open
Ajay Mathuriya (ajaycodesitbetter) wants to merge 2 commits into
Nixtla:mainfrom
ajaycodesitbetter:issue/1276
Open

Ajay Mathuriya (ajaycodesitbetter) wants to merge 2 commits into
Nixtla:mainfrom
ajaycodesitbetter:issue/1276

Conversation

@ajaycodesitbetter

Copy link
Copy Markdown

Fixes #1276.

When the non-approximate refit gives infinite ic, search_arima recursed without period, so the fallback search used the default period=1 and returned a non-seasonal model. This passes period=period in that recursive call.

Adds a regression test that forces the fallback and checks that the seasonal period is kept for every model fitted (fails before the fix, passes after). The full tests/test_arima.py passes locally.

Note: the failing path is rare (stepwise=False, approximation=True, exact refit fails). I forced it with a mock in the test.

I used AI assistance to help write and verify this change; I reviewed it myself.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 01:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CLAassistant

CLAassistant commented Oct 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Model] search_arima fallback search drops the seasonal period

3 participants