Skip to content

📊 Using machine learning to train a model using soft max regression based on real twitter datasets to classify vaccine sentiments to Pro-vax, Anti-vax and Neutral.

License

Notifications You must be signed in to change notification settings

LtVaios/Softmax-Regression-for-Vaccine-Sentiment-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A.I-Vaccine Sentiment Classifier

In this project I use artificial intelligence and machine learning to train a model to be able to tell if a person is an anti-vax, a pro-vax or none just by giving a tweet of theirs as input. Dataset Cleaning, Model Training, Plotting, statistics and metrics are included. The method used is multinomial logistic regression (Softmax Regression) and the model is trained on real twitter data. Check below for more info. You can also check the report I made in Greek to see how my experimentations lead me to this final model with 71% accuracy!

Installation / Run

✔️ You can download and open the jupyter notebook in any platform that supports it, like google collab which is where this classifier was developed. You will also find the datasets in /data/ that the model uses to train and evaluate. Make sure to make a file named "data" in google collab and upload the datasets inside in order to instantly run the code.

Multinomial Logistic Regression (Softmax Regression)

🔸Vectorizer: HashingVectorizer
🔸Number of features: 3000
🔸Tolerance: 1e-7
🔸Metrics used: F1 score (micro and weighted), accuracy, confusion matrix

Built With

MarineGEO circle logo MarineGEO circle logo MarineGEO circle logo MarineGEO circle logo

About

📊 Using machine learning to train a model using soft max regression based on real twitter datasets to classify vaccine sentiments to Pro-vax, Anti-vax and Neutral.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published