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] SquaringResiduals: predict_quantiles and predict_intervals does not work when index does not start at 0 #4181

Open
fkiraly opened this issue Jan 31, 2023 · 1 comment
Labels
bug Something isn't working module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting
Projects

Comments

@fkiraly
Copy link
Collaborator

fkiraly commented Jan 31, 2023

Same bug as #4173, for SquaringResiduals
See there for an explanation.

Code to reproduce the error:

from sktime.datasets import load_airline

y = load_airline()
y = y.reset_index(drop=True)
y = y[12:]

f.fit(y, fh=[1, 2, 3])
f.predict_interval()

Where f is an instance of one of the two forecasters.

@fkiraly fkiraly added bug Something isn't working module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting labels Jan 31, 2023
@fkiraly fkiraly changed the title [BUG] SquaringResiduals and UnobservedComponents: predict_quantiles and predict_intervals does not work when index does not start at 0 [BUG] SquaringResidualsÖ predict_quantiles and predict_intervals does not work when index does not start at 0 Jan 31, 2023
@fkiraly fkiraly changed the title [BUG] SquaringResidualsÖ predict_quantiles and predict_intervals does not work when index does not start at 0 [BUG] SquaringResiduals: predict_quantiles and predict_intervals does not work when index does not start at 0 Jan 31, 2023
@fkiraly
Copy link
Collaborator Author

fkiraly commented Jan 31, 2023

FYI @kcc-lion, any good ideas where to start?

@fkiraly fkiraly added this to Needs triage & validation in Bugfixing via automation Jan 31, 2023
fkiraly added a commit that referenced this issue Feb 6, 2023
…nteger based index not starting at zero (#4180)

Fixes #4173, the index generation in `AutoETS` and `UnobservedComponents` was wrong.

Also extends the `test_predict_interval` to test integer based indices (the default `_make_series` output starts at 3, not 0).

This covers the fix - it has also highlighed the same buggy behaviour in `SquaringResiduals` which seems to have a different cause.
As this is a different bug, it has been added to the bug tracker here #4181, and is excepted from tests temporarily.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting
Projects
Bugfixing
Needs triage & validation
Development

No branches or pull requests

1 participant