Giter Club home page Giter Club logo

mamba-text-classification's Introduction

Text Classification using Mamba with IMDB Dataset

Overview

This project aims to perform sentiment analysis on the IMDB movie review dataset using the Mamba Model. The goal is to classify movie reviews as either positive or negative based on their textual content.

Dataset

The IMDB dataset consists of 50,000 movie reviews, split evenly into 25k for training and 25k for testing. Each review is labeled as either positive or negative.

Installation

To run the project locally, follow these steps:

  1. Clone this repository:
git clone https://github.com/VuBacktracking/mamba-text-classification.git
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Navigate to the project directory:
cd mamba-text-classification
python trainer.py

History of my training

Step Training Loss Validation Loss Accuracy
625 0.020500 0.246246 0.928000
1250 0.671000 0.195849 0.940800
1875 0.596100 0.266093 0.934400
2500 0.016700 0.217099 0.941200
3125 0.000700 0.209536 0.944800
3750 2.680700 0.188751 0.949200
4375 0.015500 0.224948 0.950000
5000 0.002100 0.199092 0.952800
5625 0.013400 0.192042 0.952400
6250 0.152500 0.190083 0.953600

Note: You can check my model on hugging face hub in the link: https://huggingface.co/vubacktracking/mamba_text_classification

Dependencies

  • Python 3.x
  • Other dependencies listed in requirements.txt

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

mamba-text-classification's People

Contributors

vubacktracking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.