Skip to content

Creating a LSTM neural network for predicitng the sentiment of the review using a data set of 5000 positive and 5000 negative reviews.

Notifications You must be signed in to change notification settings

keshav1998/Netflix-Review-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netflix Review sentiment analyis

Creating a LSTM neural network for predicting the sentiment of the review using a data set of 5000 positive and 5000 negative reviews.

LSTM

Long Short-Term Memory networks — usually just called “LSTMs” — are a special kind of RNN, capable of learning long-term dependencies. LSTMs don’t have a fundamentally different architecture from RNNs, but they incorporate additional components.

The key to LSTMs is the cell state C(t), the horizontal line running through the top of the diagram. A cell state is an additional way to store memory, besides just only using the hidden state h(t). However, C(t) makes it possible that LSTMs can work with much longer sequences in opposite to vanilla RNNs.

SVM

SVM is a supervised(feed-me) machine learning algorithm that can be used for both classification or regression challenges. Classification is predicting a label/group and Regression is predicting a continuous value. SVM performs classification by finding the hyper-plane that differentiate the classes we plotted in n-dimensional space.

Data set used

The given model contains two text files, containing positive and negative reviews seperately, I would like to thank Artem Opperman for providing me the data set.

Accuracy

Accuracy in predicting the positive review and negative reviews

LSTM Accuracy
Positive 66.71
Negative 77.92
SVM Accuracy
Positive 75.71
Negative 74.92

Refrences

  1. https://towardsdatascience.com/sentiment-analysis-with-deep-learning-62d4d0166ef6
  2. https://www.kaggle.com/ngyptr/lstm-sentiment-analysis-keras/notebook

About

Creating a LSTM neural network for predicitng the sentiment of the review using a data set of 5000 positive and 5000 negative reviews.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published