Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Sentiment Classification on IMDb Dataset

This project involves sentiment classification on the IMDb dataset using two different models: an LSTM and a simple Transformer. The goal is to classify movie reviews as positive or negative.

Models

LSTM

  • Accuracy: 90% after 10 epochs

Transformer

  • Accuracy: 80% after 20 epochs

Results

LSTM Confusion Matrix Transformer Confusion Matrix
Confusion Matrix LSTM Confusion Matrix Transformer
LSTM ROC Curve Transformer ROC Curve
ROC Curve LSTM ROC Curve Transformer

Dependencies

The project uses the following libraries:

  • torch
  • torchvision
  • torchtext
  • numpy
  • matplotlib
  • sklearn

Installation

To install the required dependencies, run:

pip install -f requirements.txt

Usage

  1. To choose model, see the config
  2. Train
python train.py
  1. Evaluate/visualize
python evaluation.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages