nicodjimenez / lstm

Minimal, clean example of lstm neural network training in python, for learning purposes.
1.72k stars 654 forks source link

add parentheses for print #3

Closed bquast closed 8 years ago

bquast commented 8 years ago

I have no experience writing python, however the error message was pretty clear. After I changed these three lines the I could run

python test.py

I intend to translate this code into R so that I can learn what is going on, as I have previously done here http://qua.st/handcoding-neural-network/ with the original python code coming from here: http://iamtrask.github.io/2015/07/12/basic-python-network/

I hope that is alright, thank you for the code

nicodjimenez commented 8 years ago

@bquast you must be using python3, use python2.7 instead and the syntax is perfectly valid.