Replies: 1 comment 6 replies
-
Hey. The new_df is used to get the last training times (to produce the future times) and the values of the target to compute the lag features and tqrget transformations. If you're not doing any target transformations you can just provide the times before your forecast horizon for each id and random values of the target. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Nixtla / MLForecast,
I have been testing out the MLForecast library and have had good experience with training forecasting models on historical data. Now I want to deploy a pretrained model for inference on a schedule.
My problem is that my target variable 'y' is often delayed and inconsistent. When I trained my model I used no lagged feature and only depend on exogenous variable e.g. 'X_df' input. However, at inference time I have to provide a 'new_df' as well as my 'X_df' to the .predict() method.
I have been testing this locally and can only get inference to work on future data if I provide 'new_df' at t-1 when my exogenous variables start from 't' until 't+h'. Since my target will always be delayed there is no way for me to provide the model with 'new_df' like this, and I can never make predictions even though the model was only trained on the exogenous variables.
Can anyone help me how I would use a pretrained model for future predictions with only 'X_df'?
Beta Was this translation helpful? Give feedback.
All reactions