How to let model use more recent information when forecasting? #1541
-
Hi, Is there a way for NeuralProphet to use 'y' information of more recent data? I have sales data that has yearly, weekly, and daily seasonality. I am dealing with hourly data. Let's say on a usual monday, at for 6 AM - $250 , 7 AM - $500 ,8 AM - $1000 sales Then came a monday with low sales for 6 AM and 7 AM, say 6 AM - $50 , 7 AM - $100. The model predicts 8 AM sales to be still high close to $1000. Is it possible for the model to give more importance to the past 24 hours of data available when making prediction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, that is possible by using Autoregression. |
Beta Was this translation helpful? Give feedback.
Yes, that is possible by using Autoregression.
Set
n_lags=24
.Just beware, if you were not using AR thus far with NP, this is the one setting that will affect few other settings, like you need to also explicitly define the number of
n_forecasts
steps to predict (should be less than n_lags), e.g. 12.