Closed Priyatham10 closed 3 years ago
I also have this problem and I installed the torch version of 1.3.1.
Hi, have you got the problem solved? I also met the same problem with torch 1.5. Thanks!
I updated the torch to 1.5 and make install from source. Then it worked.
I updated the torch to 1.5 and make install from source. Then it worked.
Thanks! Problem solved.
In model.py
, the class GenericBlock(Block)
module, argument nb_harmonics
is not initiated. Try change the code to:
class GenericBlock(Block):
def __init__(self, units, thetas_dim, device, backcast_length=10, forecast_length=5, nb_harmonics=None):
super(GenericBlock, self).__init__(units, thetas_dim, device, backcast_length, forecast_length)
self.backcast_fc = nn.Linear(thetas_dim, backcast_length)
self.forecast_fc = nn.Linear(thetas_dim, forecast_length)
def forward(self, x):
# no constraint for generic arch.
x = super(GenericBlock, self).forward(x)
theta_b = F.relu(self.theta_b_fc(x))
theta_f = F.relu(self.theta_f_fc(x))
backcast = self.backcast_fc(theta_b) # generic. 3.3.
forecast = self.forecast_fc(theta_f) # generic. 3.3.
return backcast, forecast
It should work.
Yep, I updated the PyPI repository. Update the n-beats with pip and it should work! (version 1.3.3)
When trying to implement notebook "NBeats-GPU.ipynb" from examples, at the code cell where the net initialisation is done using,
I got the following error;
When I looked into the
model.py
code, in theblock_init
, we have;block_init = NBeatsNet.select_block(stack_type)
. The error says, that we have 7 positional arguments which is true inbock_init
initialisation. Please look after the error and throw some light.Thank you, stay home, stay safe..