Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Sentiment prediction using supervised learning

supervised classification using Multinomial Naive Bayes & Randon Forest

classification_v1.py implemented Bag of words, TF-IDF(with normalization)weighting, removed stop-words for feature engineering. classification_v2.py uses sklearn to process text.

used cross-validation's split_train_test() to generate hold out test set

print out performance metrics includes: accuracy, confusion matrix

plot ROC curve with Matplotlib

How to run?

$ python classfition_v1.py

About

supervised classification (implement feature generation: bag of words, TF-IDF)

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages