Views
No views yet
distilbert-base-uncased on the IMDB dataset.
It classifies movie reviews as positive or negative.| Metric | Value |
|---|---|
| Test Accuracy | 97.61% |
| vs TF-IDF baseline | +7% |
1from transformers import pipeline
2
3classifier = pipeline(
4 "sentiment-analysis",
5 model="YOUR_USERNAME/imdb-distilbert-sentimentops"
6)
7
8result = classifier("This movie was absolutely fantastic!")
9print(result)
10# [{'label': 'POSITIVE', 'score': 0.9976}]| Model | Accuracy | Inference |
|---|---|---|
| TF-IDF + LogReg | 90.0% | ~1ms |
| DistilBERT (this) | 97.6% | ~50ms |