Camilla9000's picture
Update README.md
aa52b71 verified
---
language: en
license: mit
datasets: imdb
tags:
- sentiment-analysis
- transformers
- huggingface
---
# 🎬 IMDb Sentiment Classifier
This is a fine-tuned **DistilBERT model** for analyzing sentiment in IMDb movie reviews.
## πŸ“Œ Dataset
- **Source:** IMDb dataset from Hugging Face Datasets
- **Task:** Binary classification (Positive / Negative)
## πŸ“Œ Training Details
- **Model:** `distilbert-base-uncased`
- **Learning rate:** `2e-5`
- **Batch size:** `4`
- **Epochs:** `1`
- **Loss function:** CrossEntropyLoss
## πŸ“Œ Evaluation Results
| Metric | Score |
|------------|--------|
| Accuracy | 92.5% |
| F1-score | 92.6% |
| Precision | 92.9% |
| Recall | 92.3% |
## πŸ“Œ How to Use
```python
from transformers import pipeline
classifier = pipeline("text-classification", model="Camilla9000/imdb-sentiment-classifier")
print(classifier("This movie was amazing!"))