You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue I face is that I am not able to do a backtest: I have a test dataset where exogenous features are known, and I cannot do a prediction for more than "h" rows. How can I do it please?
Or said differently, I'd like to be able to use my model on new data for several horizons before considering further retraining.
I tried this:
forecast = nf.predict(df=dftrain.tail(3),futr_df=dftest.iloc[[0]],verbose=True); works fine for the first horizon.
Then using my test dataframe with all historic exogenous known to forecast 100 steps with h=1, without autoregression on y.
result_df = pd.DataFrame();
for j in range(1,100):
forecast = nf.predict(df=dftrain.tail(3).combine_first(dftest.iloc[j-1:j]),futr_df=dftest.iloc[[j]],verbose=True);
if j < 2:
result_df = forecast;
else:
result_df = pd.concat([result_df,forecast], axis=0);
result_df.describe()
return all the time the near same value (check issue #449, very similar)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I made a N-HITS forecaster with historical exogenous series, no problem to do insample predictions and futur_df prediction.
The issue I face is that I am not able to do a backtest: I have a test dataset where exogenous features are known, and I cannot do a prediction for more than "h" rows. How can I do it please?
Or said differently, I'd like to be able to use my model on new data for several horizons before considering further retraining.
I tried this:
forecast = nf.predict(df=dftrain.tail(3),futr_df=dftest.iloc[[0]],verbose=True);
works fine for the first horizon.Then using my test dataframe with all historic exogenous known to forecast 100 steps with h=1, without autoregression on y.
return all the time the near same value (check issue #449, very similar)
Beta Was this translation helpful? Give feedback.
All reactions