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

Image for post
Image for post
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 Y. This gives you your cost which you use to update the parameters θ.

But what is Sentiment Analysis?

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 Logistic Regression

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