Skip to content

wenzi3241/Text_Classification_RNN_LG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classify tweets from Hillary Clinton and Donald Trump

This is an in class text classification competition (https://www.kaggle.com/c/cmps242-hw5) and our solution ranked 2nd place with loss of 0.167

Contents:

data/ includes training and testing data in csv file

figures/ includes plots used in the final report

LG_model.ipynb is the Jupyter notebook of Regularized Logistic Regression built from scratch

RNN_keras implements LSTM using Keras

RNN_tf builds LSTM directly using tensorflow

result/ contains the predication for evaluation loss on Kaggle

Report.pdf summarizes different approaches and compares their performance

Reference

https://github.com/jiegzhan/multi-class-text-classification-cnn-rnn/blob/master/train.py

https://github.com/richliao/textClassifier/blob/master/textClassifierConv.py