unit8co/darts

Improve error message when future covariates are missing during backtest() call

Open

#2846 aperta il 18 lug 2025

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Python (762 fork)batch import
good first issueimprovement

Metriche repository

Star
 (6832 star)
Metriche merge PR
 (Merge medio 143g 16h) (16 PR mergiate in 30 g)

Descrizione

Is your feature request related to a current problem? Please describe. Yes.When using backtest() with a model trained with train and val future covariates, forgetting to pass the full future covariates again at backtest time results in an error (IndexError: index 1 is out of bounds for axis 0 with size 1.).

Describe proposed solution A better explanation or error message should be thrown as it is the case for "regular" historical forecasts.

Additional context Error currently thrown :

IndexError: index 1 is out of bounds for axis 0 with size 1.

Guida contributor