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:
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 y2024-01-01 182024-01-02' Nan
.....
2024-02-01 Nan
How can I resolve this problem and make the right prediction
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
to2024-02-01
data, but I can only predict2024-01-01
, the rest data between2024-01-02
to2024-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