Zum Hauptinhalt wechseln

 Subscribe

Mary Wahl

Data Scientist II

Latest posts

Showing 1 – 1 of 1 posts found

Published • 3 min read

Training a neural network to play Hangman without a dictionary 

We used reinforcement learning and CNTK to train a neural network to guess hidden words in a game of Hangman. Our trained model has no reliance on a reference dictionary: it takes as input a variable-length, partially-obscured word (consisting of blank spaces and any correctly-guessed letters) and a binary vector indicating which letters have already been guessed. In the git repository associated with this post, we provide sample code for training the neural network and deploying it in an Azure Web App for gameplay.