Deep-Learning-TensorFlow icon indicating copy to clipboard operation
Deep-Learning-TensorFlow copied to clipboard

assertion error assert optimizer in ["sgd", "adagrad", "adam", "momentum"]

Open iamZe opened this issue 7 years ago • 2 comments

File "tensorFlow/Deep-Learning-TensorFlow/yadlt/core/trainers.py", line 27, in init assert optimizer in ["sgd", "adagrad", "adam", "momentum"] AssertionError

Is that due to a program bug? Anyone knows how to fix it?

Thanks.

iamZe avatar Jun 01 '17 08:06 iamZe

The error comes out when I tried to run the example code of Stacked Deep Autoencoder

iamZe avatar Jun 01 '17 08:06 iamZe

same for me when I run it

File "cmd_line/autoencoders/run_stacked_autoencoder_unsupervised.py", line 159, in finetune_enc_act_func=finetune_enc_act_func, finetune_dec_act_func=finetune_dec_act_func) File "C:\Users\Anaconda3\lib\site-packages\yadlt\models\autoencoders\deep_autoencoder.py", line 87, in init momentum=momentum) File "C:\Users\Anaconda3\lib\site-packages\yadlt\core\trainers.py", line 27, in init assert optimizer in ["sgd", "adagrad", "adam", "momentum"] AssertionError

sarmadm avatar Dec 01 '17 20:12 sarmadm