Closed TPreece101 closed 2 months ago
Hi @TPreece101 it is correct, the model is retrained for each series when using historical forecasts. There are other issues related to this: #1909, and here.
The latter also describes a proposed solution, and why it is not so trivial to implement.
Thanks for the speedy reply @dennisbader, that makes sense - I hope that you can get to it soon as it would be a really great feature!
Hi @pcgm-team. Yes, if you fit the model using multiple series before historical forecasting.
Hi everyone,
I ran into the same issue, I understood it is not easy to take into account all cases ([https://github.com/unit8co/darts/issues/1538#issuecomment-1425563775](feature request)). So, waiting a solution, I have written a global_historical_forecasts function you can copy/paste in darts/models/forecasting/forecasting_model.py . Please, note that it will only work in the case all the series share the same time indexes. It computes the models for each historical test step only the first time (for the first series in the loop) and then use the already computed models for the following series since it will be the same models as they are global models.
Closing this issue to avoid duplicates as the feature request is already tracked by #1538.
Describe the bug I am experimenting with the LightGBM model and trying to backtest using the
historical_forecasts
method. However, it appears that when I use thehistorical_forecasts
method it is treating each time series independently rather than training as a global model as it does when you use thefit
method.To Reproduce Here is the simplest possible reproduction of the issue
Expected behavior Given the number of standard out sections, and the number of points it is saying it's training with, it looks like it's treating each of the series in the series list as an individual series when using
historical_forecasts()
. Whereas when you pass a sequence of series to thefit()
method, it trains using multiple time series at once in a global fashion. I would have expectedhistorical_forecasts()
to have the same behaviour.System (please complete the following information):
Let me know if you need any further information 😊