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
[ENH] rolling window (out of sample) detrender #4054
Comments
Hey! I would like to take it, seems a little intimidating to read, but can you suggest some files to read to get idea of what's happening? What i am trying to change? |
Well, it's more of an extension than a change - there should be an option for "out of sample", and those are computed by the I would recommend to read up on |
Hey! @fkiraly (sorry for the delay, I had exams in college) Where the rolling window is adding new data with update_predict, correct? Or am I missing something? |
Yes, exactly - and we use the union of the out-of-sample forecasts to detrend (subtract from the |
Hey! @fkiraly, I have a few questions:
|
There is no minimum that the interface enforces (i.e., 1 data point); most forecasters will break though if you start going below 10. The minimum may also be influenced by seasonality. There is also an open design discussion here on how to handle the "minimum data requirement" in the interface: #3901
Hm, that's an interesting point. I would let the |
Hey! @fkiraly Sorry for the delay, but I am facing some issues (forgive me if I missed something, I still have a lot to learn about the codebase)
Should I implement my own rolling window without using a splitter? It should be easier and hassle-free considering we only need a for loop? (although if I am not wrong about the issues above there might be extra discussion required for some already implemented classes) |
@blazingbhavneek, no worries! We're a volunteer community and there is no expectation to be always engaged. To answer your Q:
|
@fkiraly I made a PR some time ago, and I am facing a issue, kindly check that out please. |
oh, apologies, did not spot it! Somehow I didn't see the notification. |
It would be good to have a rolling window detrender that allows out-of-sample forecast detrending, i.e., computing rolling window out-of-sample residuals rather than in-sample residuals.
The current
Detrender
computes in-sample residuals, when naively applied (viafit_transform
, which is called in a forecasting pipeline).Not sure whether this should be an option in the class or a separate class - it should probably take a splitter (inheriting from
BaseSplitter
) as an argument. There is also some thought to be had around what should happen if the series seen intransform
is not entirely identical nor entirely different from the one infit
.If someone wants to take this up soon, it is perhaps best to base this on the simplified logic in #4053 rather than the current
main
.The text was updated successfully, but these errors were encountered: