Closed jroakes closed 3 years ago
I should add that it looks like the issue only exists in the Pypi library and is corrected in this Github Repo.
Can confirm what @jroakes says: the PIP library is what's wrong, not the code included in the repo.
The detailed workaround is to uninstall it from pip:
pip uninstall nbeats-pytorch
And then copy paste the nbeats_pytorch
folder included in the repo on the same directory your code is.
I updated the code and pushed a version 1.3.3 for both pytorch and keras that reflects what is on the Github. The issue should be solved now ;)
Using Google Colab and
nbeats-pytorch==1.3.1
, when setting up the NBeatNet model with the following parameters:I am receiving the following error:
If I use
NBeatsNet.TREND_BLOCK
andNBeatsNet.SEASONALITY_BLOCK
the stacks build with no issue, butNBeatsNet.GENERIC_BLOCK
fails.The issue appears to be that in the
create_stack
method, you are includingself.nb_harmonics
as a parameter:yet in the initalization for the GENERIC_BLOCK, this parameter is omitted: