Open gitbooo opened 11 months ago
Hi @gitbooo,
The error message seems to indicate that test_targets
does not contain the same number of static covariates as the series used during training.
In order to use your code snippet, we would also need an example of the data you are using. You can generate dummy time series using the functions in the darts.utils.timeseries_generation
module (and make sure to add the static covariates where it's relevant).
Can you check what is contained in the model._expect_static_covariates
and model._uses_static_covariates
attributes of the model?
Issue description
I am encountering an error when attempting to perform a historical forecast using the DLinear model. The specific error message is:
This model has been trained with static_covariates; some static_covariates of matching dimensionality are needed for prediction.
Context:
To Reproduce
Current Observation:
Expected Behavior:
The model should be able to perform historical forecasting with static covariates without encountering dimensionality issues, given that the training was successful with these settings.
System:
Thank you in advance for any assistance or insights provided!