Replies: 1 comment 2 replies
-
Hey. mlforecast trains a single global model, so if you want to have one model per id you'd need to have one I'm struggling to see the difference with the one model per horizon approach here, since that's pretty much what it does (train one model for one step ahead, one for two steps ahead, etc). We don't have a For the missing timestamps you could use fill_gaps. |
Beta Was this translation helpful? Give feedback.
-
Hi Nixtla team, thanks for wonderful library.
Can I kindly ask you for help with the following:
Assume I have a very typical prediction dataframe where id_col column identifies how "far" the target_date is from run_date of the model prediction. This identifies what kind of covariates are available( or better how accurate they are according to when I am running the prediction)
(Effectively the dataset is extended by the fcst horizon for each timestep.)
Initially I thought I could simply give each of these a unique id_col and I would be able to train a model per id_col but that does not seem to be the case.
I also do not see how training a model per horizon would work in this case as I will have multiple identical target_dates but with different covariates according to run_date. The time index wont be complete in either case for some target_dates only some run_dates etc, as shown in the example.
(I know this is a lot more of a typical clasif/regr view on the problem instead of timeseries, but I do like the Nixtla ecosystem of distributed training, multithreading, preprocessing and error metrics so I would love to use mlforecast)
How can this be done in the best way possible? Can I somehow train model per id_col ? (Or am I perhaps not thinking about this correctly, can I somehow tell the model what the run_date is in the dataframe ?)
I will be grateful for any help or guidance.
Have a great day. : )
Beta Was this translation helpful? Give feedback.
All reactions