Error predicting with n_lags>0 #731
-
I am having a problem making my prediction work with
The code below is the code I am using to predict the energy consumption of the next month, March of 2022. The dataframe presented above is saved to the
The code works as expected when But as soon as that line is present again, the code only predicts one additional period after the dataframe, independently of what is put in the I don't know if this is intended behavior when the regressor is added, but I would appreciate any help to solve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is the normal behavior. |
Beta Was this translation helpful? Give feedback.
This is the normal behavior.
Using the network with the default value for n_forecast = 1 will only allow you make one-step forecast into the future.
If you want to make 324 predictions, then you should specify n_forecast = 324 (this way the network learns to make prevision n_forecast step ahead in the future).
More on this topic here: https://neuralprophet.com/html/autoregression_yosemite_temps.html#Multi-step-forecast