ourownstory / neural_prophet

NeuralProphet: A simple forecasting package
https://neuralprophet.com
MIT License
3.89k stars 480 forks source link

How to predication future data? #1609

Open Aaron1993 opened 4 months ago

Aaron1993 commented 4 months ago

When I use Neuralprophet to predict future data, the core code is as follows: m = NeuralProphet(n_lags = 7, n_forecast=30, ) train_df, test_df = m.split_df(df, freq='D' future_df = m.make_future_dataframe(df, periods=30, n_historic_predications=True) forecast = m.predict(future_df)

however, the results of the forecast have only one day of future data. For example: data df has follow format:

ds y 2017-01-01 7 2017-01-02 10 ...... 2023-12-31 18

I want to predict 2024-01-01 to 2024-02-01data, but I can only predict 2024-01-01, the rest data between 2024-01-02to 2024-02-01 is null. ds y 2024-01-01 18 2024-01-02' Nan ..... 2024-02-01 Nan How can I resolve this problem and make the right prediction

ourownstory commented 3 months ago

Hi @Aaron1993 Can you please provide a minimal set of code for us to reproduce the issue?