jdb78 / pytorch-forecasting

Time series forecasting with PyTorch
https://pytorch-forecasting.readthedocs.io/
MIT License
3.77k stars 600 forks source link

N_BEATS "AssertionError: filters should not remove entries all entries" when forecasting with new data #766

Open fornasari12 opened 2 years ago

fornasari12 commented 2 years ago

Expected behavior

After training N-BEATS model with NBeats.from_dataset() I want to predict with an out of sample dataframe with the length of max_encoder_lentgh.

Actual behavior

It throws "AssertionError: filters should not remove entries all entries - check encoder/decoder lengths and lags" if the length of the dataframe is lower than: max_encoder_length + max_prediction_length.

Code to reproduce the problem

https://gist.github.com/fornasari12/5ae6dc414f730beb2bd5c8e267b6c9f1

fornasari12 commented 2 years ago

hello @jdb78, could you help me with this error?

pnsafari commented 2 years ago

Hi @fornasari12 did you find any solution?