Predicting beyond n_forecasts with make_future_dataframe #1549
Replies: 2 comments 6 replies
-
Hi @MonacoFlori You can make more predictions by 'unrolling' the model - predict, then add the predictions as (estimated) y values of the future to the dataframe, extend with make-future-dataframe into even further future, predict again, repeat. You can define a loop to unroll as you like. And yes, the higher n_forecasts, the lower accuracy is - as you are directly regressing onto a more distant future. I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
If I get your Q right, yes.
At prediction time, the model needs any inputs that it was trained with. if if was trained with AR, then it needs the preceeding n_lags of observations before your prediction starts, and then predicts N-forecast next steps - identical to training. Without lags, it is an entirely different model that is only dependent on timestamps (and any future regressors/events), and thus can be predicted for an arbitrary number of periods - independent of training. |
Beta Was this translation helpful? Give feedback.
-
I have also a problem with the make_future_dataframe function of NeuralProphet: As soon as I add a future regressor, the function does not create a dataframe that goes into the future for more than one period (in my case a day). Therefore, I can also not add the dataframe containing the future regressors values.
I tried everything I found in the documentation and also the rest I found in the discussions but nothing works for me. If I add n_forecasts to the model, it looses massively in accuracy, and in the end it will also not create the right dataframe.
Beta Was this translation helpful? Give feedback.
All reactions