CoolFace
Modelpublic

Camilla9000/imdb-sentiment-classifier

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes8downloads
Model Card

๐ŸŽฌ 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

MetricScore
Accuracy92.5%
F1-score92.6%
Precision92.9%
Recall92.3%

๐Ÿ“Œ How to Use

python
from transformers import pipeline

classifier = pipeline("text-classification", model="Camilla9000/imdb-sentiment-classifier")
print(classifier("This movie was amazing!"))