chronos-forecasting icon indicating copy to clipboard operation
chronos-forecasting copied to clipboard

How would you include exogenous variables (covariates)?

Open srggrs opened this issue 1 year ago • 6 comments

I was wondering if it is possible to add exogenous variables as extra features to use in the model. Cheers

srggrs avatar Mar 21 '24 01:03 srggrs

Hi @srggrs, currently this is not possible out of the box: Chronos models only makes predictions based on historical data of the target series. This is definitely something to add in future work. I think the major difficulty in dealing with exogenous variables in a pre-trained manner is finding good data in large amounts. Definitely something that requires deeper research.

lostella avatar Mar 21 '24 08:03 lostella

yeah makes sense! Thanks!

srggrs avatar Mar 21 '24 21:03 srggrs

Hi @srggrs, currently this is not possible out of the box: Chronos models only makes predictions based on historical data of the target series. This is definitely something to add in future work. I think the major difficulty in dealing with exogenous variables in a pre-trained manner is finding good data in large amounts. Definitely something that requires deeper research.

What are the possible ways to add covariates to the model? Now it seems that the input of Chronos, like the language model, is a single word, while covariates and target variables are generally not on the same scale and are not suitable for inclusion in the same vocabulary.

sudongwang-upc avatar Jun 14 '24 03:06 sudongwang-upc

I was wondering if it is possible to add exogenous variables as extra features to use in the model. Cheers

Me too. Have anyone tried to add them into input. For example, If I have X[i:i + H] historical data, I want to predict X[i + H +1: i + H + N], and I concatenate Y[i:i + H] exogenous variable data(i can use different scaling for them). Would it work? Have anyone tried something like that?

grishazohrab avatar Jun 23 '24 14:06 grishazohrab

I was wondering if it is possible to add exogenous variables as extra features to use in the model. Cheers

Me too. Have anyone tried to add them into input. For example, If I have X[i:i + H] historical data, I want to predict X[i + H +1: i + H + N], and I concatenate Y[i:i + H] exogenous variable data(i can use different scaling for them). Would it work? Have anyone tried something like that?

@grishazohrab this will not work, see my answer: the models were trained for univariate forecasting tasks without any covariate information as input, but only contextual data from the target time series.

lostella avatar Jun 23 '24 15:06 lostella

I saw a new branch got created for the support of exogenous variables. I would like to ask if you can share an estimate for the release date of the code. Thanks!

MarchesiGabriele avatar May 12 '25 07:05 MarchesiGabriele