roatienza / Deep-Learning-Experiments

Videos, notes and experiments to understand deep learning
MIT License
1.1k stars 760 forks source link

Fixed malformed code in RNN example #21

Open s-m-e opened 5 years ago

s-m-e commented 5 years ago

Fixed two non-deterministic sources of hard-to-catch issues in RNN example.

s-m-e commented 5 years ago

I appears that you are tying to support not only Python 3 but also Python 2. If this was true and if you were accepting my pull request, you would need to add a switch of some kind: Python 3's dict.items must be dict.iteritems for Python 2.