Skip to content

Our goal is to develop a sentiment classifier using a bidirectional stacked RNN with LSTM/GRU cells for twitter sentiment analysis.

Notifications You must be signed in to change notification settings

spyros-briakos/Bidirectional-stacked-RNN-with-LSTM-GRU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Bidirectional-stacked-RNN-with-LSTM-GRU

Our goal is to develop a sentiment classifier using a bidirectional stacked RNN with LSTM/GRU cells for twitter sentiment analysis, from this dataset, which was cleaned in this Click here to open in Colab.

We implemented a class, called LSTM_GRU, where with help of her we managed to experiment with:

  • Number of stacked RNNs
  • Number of hidden layers
  • Type of cells
  • Gradient clipping
  • Dropout probability

During our experimental procedure, we utilize the Adam optimizer and the Binary Cross-Entropy (BCE) loss function. Each experiment, which took place, was evaluated from learning curves, classification report (which includes precision, recall and F1 score for each class) and ROC Curve's plot. In this last checkpoint of this Click here to open in Colab, we decided to keep LSTM model, which aimed to have a pretty descent performance!

Note that notebook is well reported and was implemented with Machine Learning Library Pytorch. Running's procedure took place on Google Colab, enhanced with Cuda GPU!

About

Our goal is to develop a sentiment classifier using a bidirectional stacked RNN with LSTM/GRU cells for twitter sentiment analysis.

Topics

Resources

Stars

Watchers

Forks