Finetuned IMDB Sentiment Model 🎬✨

This model is a fine-tuned version of distilbert-base-uncased on the IMDB dataset. It classifies movie reviews as positive (1) or negative (0).

πŸ“Š Training Details

  • Optimizer: AdamW
  • Learning Rate: 2e-5
  • Batch size: 16
  • Epochs: 3
  • Train/Test split: 80/20

πŸ“ˆ Evaluation

The model achieves around 89.52% accuracy on the test set.

πŸš€ Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline

tokenizer = AutoTokenizer.from_pretrained("SabaAnver/finetuned-imdb-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("SabaAnver/finetuned-imdb-sentiment")

nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
print(nlp("This movie was amazing!"))
Downloads last month
-
Safetensors
Model size
67M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train SabaAnver/finetuned-imdb-sentiment

Space using SabaAnver/finetuned-imdb-sentiment 1