tony
2017-11-28 18:38:59 UTC
HI
I'm getting this error after I run the SDA code , how this error can be
fixed ?
NameError Traceback (most recent call last)<ipython-input-9-94013ff577e5> in <module>() 466 467 if __name__ == '__main__':--> 468 test_SdA()
<ipython-input-9-94013ff577e5> in test_SdA(finetune_lr, pretraining_epochs, pretrain_lr, training_epochs, dataset, batch_size) 375 376 print(('The pretraining code for file ' +--> 377 os.path.split(__file__)[1] + 378 ' ran for %.2fm' % ((end_time - start_time) / 60.)), file=sys.stderr) 379 # end-snippet-4
NameError: name '__file__' is not defined
SDA from deeplearning.net <http://deeplearning.net/tutorial/code/SdA.py>
I'm getting this error after I run the SDA code , how this error can be
fixed ?
NameError Traceback (most recent call last)<ipython-input-9-94013ff577e5> in <module>() 466 467 if __name__ == '__main__':--> 468 test_SdA()
<ipython-input-9-94013ff577e5> in test_SdA(finetune_lr, pretraining_epochs, pretrain_lr, training_epochs, dataset, batch_size) 375 376 print(('The pretraining code for file ' +--> 377 os.path.split(__file__)[1] + 378 ' ran for %.2fm' % ((end_time - start_time) / 60.)), file=sys.stderr) 379 # end-snippet-4
NameError: name '__file__' is not defined
SDA from deeplearning.net <http://deeplearning.net/tutorial/code/SdA.py>
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.