Trump v. Clinton: Twitter metadata classifier

Classifiying tweets as Hilary or Trump.
Author

Thadryan

Published

January 9, 2018

Hello all!

I did a project for a data science class in which I classified tweets as being from @realDonaldTrump vs @HillaryClinton. I found a dataset on this on Kaggle. Because words and context trip up even the most clever programs on occasion, I decided to see if I could write and entirely numerical classifier. It read length of words, average words per sentence, that sort of thing. I wrote a Python function that engineers these features and a script to implement it that adds them to the original dataset. Below is the video:

Please feel free to get in touch if you’d like to see a copy of the PDF.