War in Ukraine
Machine Learning Sentiment Prediction
Final Data Analysis Berkeley Bootcamp Project
�Module 20
February 24 2022 was started Russo-Ukrainian War, which is going to have huge impacts around the world, perhaps even ending the globalized era as we know it. It is imperative that we capture and analyze the massive amounts of data being put out as a result of this war.
Project roles:
The Question We Are Asking
Can we predict if a certain tweet about Ukrainian War �is negative?
Structure of Sentiment Prediction project
Extract Transform Load
49.74M tweets on Kaggle, 12 GB
Data Cleaning
Pre-Machine Learning
Joined Twitter and Events Data Set
RoBERTa Sentiment Analysis
What is RoBERTa?
What is sentiment analysis?
Server Setup
Why do we need a server?
Setup:
Machine Learning Model - Step 1 : Prep dataset for RoBERTa ingestion
Step 1:
Step 2:
Machine Learning Model - Step 2 : RoBERTa to Output Sentiment Weights
Step 3:
RoBERTa to Output Sentiment Weights
Step 4:
Post-RoBERTa Machine Learning
Sentiments Data Set Added
Data Exploration and Visualization
ERD
Relationship
Chart
Final Preprocessing
713009 rows x 22 columns => 710355 rows x 14 columns
136805 hashtags labeled
Final Exploratory Analysis
Supervised Machine Learning Model
Linear Regression Model prediction �for sentiment of each tweet
Linear Regression Model prediction �for the average sentiment of the day
Deep Machine Learning Model
ReLU + Linear
Probability Density Function
LightBGM Classifier Model
0.6527 accuracy score�Confusion Matrix
We will glad to answer your questions!