Views
No views yet
distilbert-base-uncased on 5,000 IMDb movie
reviews for 3 epochs. It classifies text as POSITIVE or NEGATIVE sentiment.| Metric | Score |
|---|---|
| Accuracy | 88.6% |
| F1 Score | 0.885 |
| Model | Accuracy |
|---|---|
| TF-IDF + Logistic Regression | 86.4% |
| DistilBERT (this model) | 92.3% |
1from transformers import pipeline
2classifier = pipeline('text-classification', model='YOUR-USERNAME/distilbert-imdb-sentiment')
3result = classifier('This movie was absolutely incredible!')
4# Output: [{'label': 'POSITIVE', 'score': 0.997}]