Implemented a Logistic Regression algorithm to classify text data (e.g. tweets and posts) based on sentiment analysis (positive or negative)
The dataset used is taken from from nltk.corpus import twitter_samples
๐งโ๐ป Python
Runs the main script
"Today is beautiful day!! :)"
prediction -> 1 (positive)"I am hopeless for the next week :("
prediction -> 0 (negative)"That decision was a shame!"
prediction -> 0 (negative)
Accuracy : 99.7%
Total False Positive/Negative Rate : 0.3%
Here is the confusion matrix used to define thethe performance of the classification algorithm