You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have data that is of 1 hour granularity. I would like to create a model that forecasts the next 7 days of values every 24 hours. My future covariates are updated every day.
Production Example:
Current time: 2024-01-01 23:00:00
Prediction horizon (7 days): 2024-01-02 00:00:00 to 2024-01-08 23:00:00
Target values: Latest target I have is until 2024-01-01 23:00:00
Future covariates: until 2024-01-08 23:00:00
I would like to predict each day's values using only the target_lag from the previous day and the future_cov from the same day. Hence, I define my model as such:
From the training set, it appears that when predicting for the first day, because the target_lag is defined as [-24, -1], the target_lag values used from the second hour onwards does not exist. For example, when trying to predict for the target at 5am, the target_lag-1 is the value at 4am (which does not exist in production). The latest target value I have is from 23:00 from the previous day. How would I define my model such that it always uses the 24 target values from the day before to predict all hours on the day of prediction?
Example dataset:
What I want the training set to be (Assuming output chunk length = 2):
The text was updated successfully, but these errors were encountered:
I have data that is of 1 hour granularity. I would like to create a model that forecasts the next 7 days of values every 24 hours. My future covariates are updated every day.
Production Example:
Current time: 2024-01-01 23:00:00
Prediction horizon (7 days): 2024-01-02 00:00:00 to 2024-01-08 23:00:00
Target values: Latest target I have is until 2024-01-01 23:00:00
Future covariates: until 2024-01-08 23:00:00
I would like to predict each day's values using only the target_lag from the previous day and the future_cov from the same day. Hence, I define my model as such:
When trying to create the historical backtest, this is the implementation I came up with:
I then tried printing out the training set using
From the training set, it appears that when predicting for the first day, because the target_lag is defined as [-24, -1], the target_lag values used from the second hour onwards does not exist. For example, when trying to predict for the target at 5am, the target_lag-1 is the value at 4am (which does not exist in production). The latest target value I have is from 23:00 from the previous day. How would I define my model such that it always uses the 24 target values from the day before to predict all hours on the day of prediction?
Example dataset:
What I want the training set to be (Assuming
output chunk length = 2
):The text was updated successfully, but these errors were encountered: