Skip to content

My solution for the third project in the Udacity Deep-Learning Nanodegree. A recurrent neural network is used for the creation of an artificial Seinfeld TV-Script.

Notifications You must be signed in to change notification settings

c-schrade/Udacity-TV-Script-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Udacity-TV-Script-Project

The Jupyter-Notebook-File dlnd_tv_script_generation.ipynb includes my solution to the Generate-TV-Scripts-Project in the Deeplearning-Nanodegree.

General Task

The task is to use a neural network to generate an artificial Seinfeld TV script.

Approach

The idea is to attack this task by training a recurrent neural network feeding it a dataset of Seinfeld TV scripts from nine seasons. After training, the functionality of the model will be as follows: After inputting a word to the model, it will generate a whole script of a specified length word by word.

All of the code is written in python and the pytorch library is used to implement the recurrent neural network.

Architecture of the Model and Hyperparameters

The network is a recurrent neural network consisting of two hidden layers with LSTM cells, an embedding layer at the beginning and a fully connected layer at the end. The optimizer for the backpropagation process is an Adam optimizer.

Here are the chosen hyperparameters:

  • Sequence Length: 10
  • Batch Size: 128
  • Embedding Dimension: 400
  • Dimension of hidden States: 256
  • Epochs: 15
  • Learning Rate: 0.001

About

My solution for the third project in the Udacity Deep-Learning Nanodegree. A recurrent neural network is used for the creation of an artificial Seinfeld TV-Script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published