Closed mnoorchenar closed 6 months ago
Hi @mnoorchenar,
Deep learning model supporting future covariates such as TFTModel
need the future covariates series to extend output_chunk_length
values after the end of the target series that is being forecasted. It is mentioned in the docstring of the argument: "Also, the number of future values from future covariates to use as a model input (if the model supports future covariates). It is not the same as forecast horizon n used in predict(), which is the desired number of prediction points generated using either a one-shot- or autoregressive forecast. Setting n <= output_chunk_length prevents auto-regression. This is useful when the covariates don’t extend far enough into the future, or to prohibit the model from using future values of past and / or future covariates for prediction (depending on the model’s covariate support)".
From the error message, it seems like the two series have the same end, meaning that your future covariates might actually be a past covariate (see this page for more information about the covariates).
Can anyone help me with this error? ValueError: For the given forecasting horizon
n=12
, the provided future covariates at dataset index0
do not extend far enough into the future. Asn <= output_chunk_length
the future covariates must end at time step2022-10-01 16:00:00
, whereas now they end at time step2022-10-01 04:00:00
.I only want to predict the next 12 days, and I provided a lot of information from the future covariates—nearly 10 months—and my data was collected hourly.
I don't know what exactly this error means, and I'm completely confused about that. Based on this error, it means that I need to have data information until this 2022-10-01 16:00:00 time. But why do I need it until this time?
I also changed input_chunk_length and output_chunk_length and tried many different numbers, but nothing happened, and I also got the same error.