项目作者: evanotero

项目描述 :
🤖 LSTM Recurrent Neural Network Text Generation
高级语言: Python
项目地址: git://github.com/evanotero/edgar-alan-turing.git
创建时间: 2016-10-22T16:59:49Z
项目社区:https://github.com/evanotero/edgar-alan-turing

开源协议:MIT License

下载


Edgar Alan Turing

Text Generation with LSTM Neural Networks using Keras running on top of Theano.

Training

By using the Amazon Web Services infrastructure, we were able to access GPUs to speed up the training of our deep learning models.
A Community Amazon Machine Image was used (ami-125b2c72), which was made for the Stanford CS231n class.
The following are the specifications for the GPU Graphics Instance that was used:

  1. g2.2xlarge:
  2. 15 GiB memory,
  3. 1 x NVIDIA GRID GPU (Kepler GK104),
  4. 60 GB of local instance storage,
  5. 64-bit platform

The models each trained for 50 epochs, which took between 4 and 9 hours on Amazon’s GPUs, depending on the size of the text files.

The training loss for the models went as follows:
alt text

Results

The different authors’ models vary in performance, with the Edgar Allan Poe model performing poorly, and the JK Rowling model showing the most promise. Additional to these two, we also ran models on the works of Dante Alighieri, JRR Tolkien, and and William Shakespeare. The models show both a base-level understanding of the English language, reliably forming proper words and sentences, and a higher level understanding of character, plot, and rhythm, creating sequences of text featuring similar dialogue and rhythmic patterns to those of the authors they were modeled from.

Web Application

Available at http://edgaralanturing.us-west-2.elasticbeanstalk.com/ (backend is currently under construction).

Created for HackHarvard 2016.