Views
No views yet
transformers:1from transformers import pipeline
2
3sentiment_pipeline = pipeline("sentiment-analysis", model="mirko-doljanica/distilbert-imdb-sentiment")
4print(sentiment_pipeline("I loved this movie! The performances were amazing."))
5
6## 📈 Results
7
8| Metric | Score |
9|--------------|-------|
10| Accuracy | 0.915 |
11| Precision | 0.915 |
12| Recall | 0.915 |
13| F1-score | 0.915 |
14
15These results were achieved after fine-tuning DistilBERT on the IMDb dataset with 2 epochs and a batch size of 8. The model performs consistently well on binary sentiment classification tasks.
16transformers, datasets, and accelerate libraries, leveraging PyTorch as the backend.