EchoTorch icon indicating copy to clipboard operation
EchoTorch copied to clipboard

optimizer got an empty parameter list

Open flaviadcasag opened this issue 6 years ago • 4 comments

Hi, I am trying to run the code time series prediction sgd but I got an error "optimizer got an empty parameter list". I googled and found we need to register some parameters. Do you have an updated code for LiESN with the parameters list fixed?

Thank you!

flaviadcasag avatar Oct 09 '18 09:10 flaviadcasag

Same problem. I tried using the ESN module for my project but it's giving me this error: ValueError: optimizer got an empty parameter list

Also trying to run the time series prediction example code gives the same error.

Fuxino avatar Nov 30 '18 13:11 Fuxino

I also have the exact same problem trying to run the time series prediction example code.

AlexanderRadovic avatar Apr 08 '19 21:04 AlexanderRadovic

It is also giving the same error in my code when using ESN with SGD.

Aak6ash avatar Jun 26 '19 17:06 Aak6ash

Same error, relevant code snippets:

esn = etnn.ESN(
    input_dim=input_dim,
    hidden_dim=n_hidden,
    output_dim=output_dim,
    learning_algo='grad',
    w_generator=w_generator,
    win_generator=win_generator,
    wbias_generator=wbias_generator,
)
optimizer = optim.SGD(esn.parameters(), lr=learning_rate, momentum=momentum, weight_decay=weight_decay)

JordanMajd avatar Nov 07 '20 03:11 JordanMajd