Closed KunzstBGR closed 3 months ago
Hi @KunzstBGR , I assume what you're trying to do is historical forecasting. You can let the model generate the forecasts for you using, model.historical_forecasts()
(check out the docs here).
In general you can train/predict with any global forecasting model (including TFTModel) using a list of TimeSeries as input.
You can also check out the examples in our Quickstart here. The same works for multiple series, just pass a list of TimeSeries as series
to historical forecasts.
Hi @dennisbader, thanks a lot for the clarification! I indeed overcomplicated things. I somehow thought that histrocial_forecast() would only relate to back/hindcasting and didn't look into it.
No worries, closing in that case.
Hi there, I wanted to ask if what I'm trying to achieve is overly complicated or if this is the intended way to get rolling predictions.
I have multiple time series for which I want to calculate rolling predictions for 16 weeks using a TFT model with a Lookback window/Input chunk length of 52 weeks. I specified the test period to overlap wih the last year of the validation set, so the test period is from 2015 - 2020. My goal is to obtain 16 predictions starting from the first week of 2016, then 16 predictions starting from the second week of 2016 and so on.
Here's how I specified the model:
To obtain the predictions I created 52 week slices of my test data for each week across the test period:
Is this the right way of doing this? Also, if I understood correctly, I don't need to worry about the correct slicing of the past and future covariates, because Darts takes care of this?