darts icon indicating copy to clipboard operation
darts copied to clipboard

Purpose of passing target time series to model predict method

Open ETTAN93 opened this issue 1 year ago • 1 comments

Hi,

If my model does not have any target lags, i.e. target_lags = None, does it mean that passing the series to the predict method is purely to tell the model where to start the forecast from? If I do not pass series to it, then the model will be forecasting from the end of the training series rather from where I want it to

image

ETTAN93 avatar Feb 07 '24 05:02 ETTAN93

Hi @ETTAN93,

This is correct, even if the model does not rely on target lags, it'll just use its time index to generate the time index of the forecasts.

So yes, you can still pass a series if you want to shift the first predicted steps (note that here, auto-regression should not affect the quality of the forecasts since the model won't consume its own predictions so the dummy target series might not even be necessary).

madtoinou avatar Feb 07 '24 09:02 madtoinou