+
Skip to content

Conversation

Alexis-Fauxbaton
Copy link
Contributor

@Alexis-Fauxbaton Alexis-Fauxbaton commented Jul 29, 2025

Reference Issues/PRs

Fixes #8096

What does this implement/fix? Explain your changes.

These changes allow the use of exogenous variables when using the _update() method from a statsmodels adapter with update_params=False (encountered this issue when applying grid search with strategy='no-update_params' to a SarimaX estimator)

Does your contribution introduce a new dependency? If yes, which one?

No

What should a reviewer concentrate their feedback on?

Only 2 lines of code are added, so I think the review would be straightforward

Did you add any tests for the change?

No

Any other comments?

My first ever pull request on a public repo, so be kind haha

@Alexis-Fauxbaton Alexis-Fauxbaton changed the title [ENH] Add exogenous variable support for statsmodels adapter [ENH] Add exogenous variable support for statsmodels adapter _update() method Jul 29, 2025
@Alexis-Fauxbaton Alexis-Fauxbaton changed the title [ENH] Add exogenous variable support for statsmodels adapter _update() method [ENH] Add full exogenous variable support for statsmodels adapter _update() method Jul 29, 2025
@Alexis-Fauxbaton Alexis-Fauxbaton changed the title [ENH] Add full exogenous variable support for statsmodels adapter _update() method [ENH] Add full exogenous variable support for statsmodels adapter _update() method when update_params=False Jul 29, 2025
@fkiraly fkiraly added module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting bugfix Fixes a known bug or removes unintended behavior labels Jul 29, 2025
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

We should at least add a test for the bug you encountered.

What worries me more is that the test suite in TestAllForecasters did not catch this - optional but it would be really great if you could also add the test there, with an abstract forecaster!

@Alexis-Fauxbaton Alexis-Fauxbaton requested a review from fkiraly July 30, 2025 12:46
@Alexis-Fauxbaton
Copy link
Contributor Author

Thank you for your review ! I have added tests to make sure this bug is correctly catched. Let me know if I missed something

@fkiraly
Copy link
Collaborator

fkiraly commented Jul 31, 2025

nice! I have started the tests now.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Code formatting is failing, see here how to ensure automatic formatting: https://www.sktime.net/en/stable/developer_guide/coding_standards.html

@Alexis-Fauxbaton
Copy link
Contributor Author

Alright, should be good now.

@fkiraly
Copy link
Collaborator

fkiraly commented Aug 1, 2025

Interesting - it looks like some other models are failing the new test - they should obviously pass.

This is how I would suggest how to deal with this:

  • open an issue and report the failing models
  • add a skip tag tests:skip_by_name to the failing models, and link the new issue.

When that is done, we can merge this (so we avoid adding unskipped failures to main)

@fkiraly
Copy link
Collaborator

fkiraly commented Aug 2, 2025

(let us know if you would like someone else to do that)

@Alexis-Fauxbaton
Copy link
Contributor Author

Alexis-Fauxbaton commented Aug 5, 2025

Interesting - it looks like some other models are failing the new test - they should obviously pass.

This is how I would suggest how to deal with this:

  • open an issue and report the failing models
  • add a skip tag tests:skip_by_name to the failing models, and link the new issue.

When that is done, we can merge this (so we avoid adding unskipped failures to main)

The StatsForecastAutoARIMA forecaster seemed to fail the test because the exog matrix I used in the test contained integer instead of floating values. I'm not sure whether this is intended behaviour or not but I updated the test accordingly so that this should pass. Let me know If you would rather have the test succeeding even if the matrix is composed of integer values

@fkiraly fkiraly merged commit 4e974bc into sktime:main Aug 21, 2025
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a known bug or removes unintended behavior module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] update_predict using X data with SARIMAX error

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载