• Had 3 hours to build something, wanted to practice machine learning with sklearn
  • Artificially generated Harry Potter book

What it does

  • Trained on Nate the Snake (great story), given the previously typed characters the model predicts what the next character will be
  • Can also generate a "story" given a starting seed and other parameters

How I built it

  • Scikit learn for training the model, flask for web app
  • Bootstrap on front end, jQuery/AJAX

Challenges I ran into

  • I forgot how to use scikit learn (but luckily it is user friendly!)
  • Started at 5am

Accomplishments that I'm proud of

  • Finished the project

What I learned

  • How to set up a data pipeline with one hot encodings in scikit learn
  • How to pass body and query variables in HTTP requests for flask

What's next for Charcoal

  • Webcrawl sites for more training data yay
Share this project: