Problem with make_future_dataframe() #1504
-
I am running the following code: import pandas as pd from neuralprophet import NeuralProphet, set_log_level df_future = m.make_future_dataframe(df=df, periods=10, n_historic_predictions=2) The future dataframe looks like this I am specifying periods = 10 but the future data points created is 5 which is equal to n_forecasts parameter. What is the use of periods then? Also the n_historic_predictions does not seem to be working? When i run this line afterwards forecast = m.predict(df_future) I am having a problem understanding what the output means and why does it have NaN values. Can someone help me please? What I want to do on general is to forecast a series and add lagged and future regressors. I have a problem with lagged regressors because i get results like the one i am showing and i do not understand what it means? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Yes it seems to be confusing in latest version but you can try these: You get the latest forecast from the predicted values.
or you can try:
p=exctract_yhat(forecast,5) For details look: |
Beta Was this translation helpful? Give feedback.
-
Maybe this tutorial may be of help: https://neuralprophet.com/how-to-guides/feature-guides/collect_predictions.html |
Beta Was this translation helpful? Give feedback.
-
@Mo-Abdelhameed could you explain or share the code on how you solved this? I'm having the same isssue. |
Beta Was this translation helpful? Give feedback.
Maybe this tutorial may be of help: https://neuralprophet.com/how-to-guides/feature-guides/collect_predictions.html
have a closer look at the 'raw' format.