Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to predication future data? #1609

Open
Aaron1993 opened this issue Jul 3, 2024 · 1 comment
Open

How to predication future data? #1609

Aaron1993 opened this issue Jul 3, 2024 · 1 comment

Comments

@Aaron1993
Copy link

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-01 data, but I can only predict 2024-01-01, the rest data between 2024-01-02 to 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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants