Let's compare which algorithm is better for classifying the tweets based on their sentiments.

Photo by Raphael Schaller on Unsplash

Supervised ML

In supervised machine learning, you usually have an input X, which goes into your prediction function to get your Y^. You can then compare your prediction with the true value . This gives you your cost which you use to update the parameters .

But what is Sentiment Analysis?

(also known as opinion mining or emotion AI) refers to the use of natural language processing, text analysis, computational linguistics, and biometrics to systematically identify, extract, quantify, and study affective states and subjective information.

So, let's start sentiment analysis using

Sentiment Analysis using Logistic Regression

We will be using the sample twitter data set for this exercise.

Atharva Mashalkar

A Data Science and Software enthusiast currently working as an intern at Digital Olives under Data Science profile.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store