stanfordnlp/imdb
Viewer โข Updated โข 100k โข 176k โข 472
Fine-tuned DistilBERT model for binary sentiment classification on IMDB movie reviews.
This model is a fine-tuned version of
distilbert-base-uncased on the IMDB dataset.
It classifies movie reviews as positive or negative.
Built as part of the SentimentOps MLOps project โ an end-to-end pipeline covering data processing, model training, experiment tracking with MLflow, REST API with FastAPI, CLI tooling, and Docker deployment.
| Metric | Value |
|---|---|
| Test Accuracy | 97.61% |
| vs TF-IDF baseline | +7% |
from transformers import pipeline
classifier = pipeline(
"sentiment-analysis",
model="YOUR_USERNAME/imdb-distilbert-sentimentops"
)
result = classifier("This movie was absolutely fantastic!")
print(result)
# [{'label': 'POSITIVE', 'score': 0.9976}]
| Model | Accuracy | Inference |
|---|---|---|
| TF-IDF + LogReg | 90.0% | ~1ms |
| DistilBERT (this) | 97.6% | ~50ms |
Part of SentimentOps โ a full MLOps pipeline: