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

[BUG] change index match to integer in _StatsModelsAdapter predict #5642

Merged
merged 3 commits into from Dec 24, 2023

Conversation

ciaran-g
Copy link
Contributor

@ciaran-g ciaran-g commented Dec 19, 2023

Reference Issues/PRs

Fixes #5641

What does this implement/fix? Explain your changes.

Rather than convert to period just use the integer positions in _StatsModelsAdapter

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

No

What should a reviewer concentrate their feedback on?

Did you add any tests for the change?

Any other comments?

PR checklist

For all contributions
  • The PR title starts with either [ENH], [MNT], [DOC], or [BUG]. [BUG] - bugfix, [MNT] - CI, test framework, [ENH] - adding or improving code, [DOC] - writing or improving documentation or docstrings.

Copy link
Collaborator

@yarnabrina yarnabrina 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 for finding and fixing this bug.

Can you please also modify for probabilistic forecasts? For example, predict_interval for SARIMAX fails with similar error as you showed in the linked issue.

@ciaran-g
Copy link
Contributor Author

Can you please also modify for probabilistic forecasts? For example, predict_interval for SARIMAX fails with similar error as you showed in the linked issue.

Good shout 👍 addressed

@fkiraly fkiraly added module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting bugfix Fixes a known bug or removes unintended behavior labels Dec 22, 2023
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.

Hm, looks sensible, although I wonder whether this should not be using one of the methods of ForecastingHorizon. Not blocking though.

@fkiraly fkiraly merged commit d4a3490 into sktime:main Dec 24, 2023
39 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] convert to period bug in _StatsModelsAdapter
3 participants