Downloads · 30 days
0
amine77776/imdb-sentiment-nn
imdb-sentiment-nn is a machine learning model from amine77776. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
[](https://github.com/khalilami2005-ctrl/imdb-sentiment-nn/actions/workflows/train-and-upload.yml)
Downloads · 30 days
0
Access
Public
Updated Jun 1, 2026
Repo size
21.1 MB
Likes
0
Public
Click a slice to open those files.
.pt20.8 MB · 98%
From the Hugging Face model README
Sentiment analysis of IMDB movie reviews using a TF-IDF + Feedforward Neural Network trained automatically via GitHub Actions CI/CD and deployed to Hugging Face Hub.
IMDB Review Text
↓
Text Cleaning (HTML tags, punctuation, lowercase)
↓
TF-IDF Vectorization (10,000 features, unigrams + bigrams)
↓
Linear(10000 → 512) + BatchNorm + ReLU + Dropout(0.3)
↓
Linear(512 → 128) + BatchNorm + ReLU + Dropout(0.3)
↓
Linear(128 → 2) → Softmax
↓
Positive 😊 / Negative 😞
imdb_balanced_10k.csvEvery push to main automatically:
model.pt, vectorizer.pkl, config.json, metrics.json)No manual uploads. Ever.
imdb-sentiment-nn/
├── data/
│ └── imdb_balanced_10k.csv # Training data
├── model/ # Generated by train.py
│ ├── model.pt # PyTorch model weights
│ ├── vectorizer.pkl # TF-IDF vectorizer
│ ├── config.json # Hyperparameters
│ └── metrics.json # Training metrics
├── train.py # Training script
├── predict.py # Inference script
├── requirements.txt # Dependencies
└── .github/
└── workflows/
└── train-and-upload.yml # CI/CD pipeline
pip install -r requirements.txt
python train.py
python predict.py "This movie was absolutely fantastic!"
# Sentiment: positive 😊
# Confidence: 94.23%
python predict.py "Terrible film, complete waste of time."
# Sentiment: negative 😞
# Confidence: 91.87%
See model/metrics.json after training. Expected accuracy: ~88–92% on the test set.
Model artifacts are automatically deployed to Hugging Face Hub via GitHub Actions.