-
Notifications
You must be signed in to change notification settings - Fork 908
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
[Question] Is it possible to modify the training dataset to use a future covariate that has a history of forecasts? #2421
Comments
Hi @gconnell-hiringa, it is possible but requires quite some manual work.
I'll give you an example below how you could achieve it for Subclass from
Then subclass from
Now create your target series and future covariates. We'll give the DataSet a list of target series, and list of lists of future covariates (fc). Each inner list corresponds to all the future covariates for one target series. The example will generate two samples -> I'll pass an inner list of two fc series as well. Every sample will extract the future covariates from the corresponding fc from the inner list.
For the tests, you see that the extraction worked. Now as a last check, we try to train a
|
@dennisbader THANK YOU!!!! This response far exceeds what I was hoping for, so thank you for going to the extra effort of providing an example. I've tried out the example and can follow what is going on. I'm 99% sure this is going to work well for the model I am working on at the moment, which is a TFT Model so the mixed covariate example is perfect. I'll post back to this thread with further feedback when I've figured out the implementation. |
@dennisbader, would this be also relevant to what we discussed the other day on how to do a historical backtest with changing historical forecasts? we spoke about having to use fit and predict rather than the 'historical forecast' method out of the box? thanks |
Hi @ETTAN93, this might potentially also work with pre-trained |
I have a dataset where a future covariate is a weather forecast for the next 10 time periods and it is updated at every new time step.
Is it possible to use or modify the training dataset methods to generate training samples with the weather forecast for the relevant window?
I suspect this is getting into subclassing the TrainingDataset and would be great if there are any examples that can be shared.
Appreciate any help that can be given.
The text was updated successfully, but these errors were encountered: