-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about future exogenous variables #1264
Comments
By the way. |
Hello! I am confused by what you report and the code that you show. The code you share is the sample usage of RNN from the documentation, which works fine. There are no errors, no matter if we include Now, it seems that you have missing values for your exogenous features. This is not supported in neuralforecast. There cannot be any missing values in your target series or in your features. Let me know if this helps! |
Thanks for your reply, there is no problem with the original code. If there can't be missing values in the features, my idea is to use, for a certain sample/prediction point, the historical values of its historical exogenous variables and combine them with the future values of the predicted exogenous variables (excluding exogenous variables prior to the prediction point) for training and prediction, can this be done by setting parameters in the library code? Finally, thanks for the great work! |
No, that's not possible. Historical features must have values for all time steps, and future exogenous variables must have values for all past and future time steps, including the horizon. You can read more about exogenous features here: https://nixtlaverse.nixtla.io/neuralforecast/docs/capabilities/exogenous_variables.html#3-training-with-exogenous-variables. |
Thanks again for your reply. I am not quite sure about the details of the model implementation. By analysing the code, I found out that the RNN is implemented to generate 24-hour forecasts for each time step, so for this model, future exogenous variables need to be configured for each time step. I think I know what to do next: fill in the missing future variables. Thanks for your help and have a nice day. |
Description
Code: Original RNN code as Use Case
Requirement: when I predict pollutants for the next 24 hours, I have historical pollutant data from the previous year, weather forecast data for the next 24 hours, and historical meteorological data from 10 days ago (but missing historical meteorological data from the middle 10 days).
At this point I can't library the code to make a prediction, I try to remove the historical prediction data during modelling and the error is reported as follows:
With meteorological data missing in the middle (first 10 days), is there a way to still make predictions using exogenous variables
Use case
The text was updated successfully, but these errors were encountered: