nlintz / TensorFlow-Tutorials

Simple tutorials using Google's TensorFlow Framework
6k stars 1.51k forks source link

Added simple lstm example following other example styles. #14

Closed hunkim closed 8 years ago

hunkim commented 8 years ago

Added a lstm example. I just added the model, and all the rest is basically the same as other examples.

This example is inspired by https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3%20-%20Neural%20Networks/recurrent_network.py, but much simplified.

This simple implementation yields decent results:

0 0.66796875 1 0.79296875 2 0.84765625 3 0.8984375 4 0.91796875 5 0.921875 6 0.95703125 7 0.953125 8 0.953125 9 0.95703125 10 0.96875 ... 91 0.9609375 92 0.98046875 93 0.984375 94 0.98046875 95 0.984375 96 0.97265625 97 0.984375 98 0.98046875 99 0.98828125

hunkim commented 8 years ago

I just saw another pull request #6, but I guess this is a simpler implementation. :-)

nlintz commented 8 years ago

I agree with hunkim, this implementation is a bit simpler. Lets go ahead and merge in this PR and close #6