Views
No views yet
distilbert-base-uncased trained on the IMDB movie reviews dataset.NEGATIVE (0), POSITIVE (1)1from transformers import pipeline
2
3clf = pipeline("text-classification", model="rajaadil/my-sentiment-model")
4print(clf("This movie was absolutely fantastic!"))
5# [{'label': 'POSITIVE', 'score': 0.98}]1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2
3tokenizer = AutoTokenizer.from_pretrained("rajaadil/my-sentiment-model")
4model = AutoModelForSequenceClassification.from_pretrained("rajaadil/my-sentiment-model")| Hyperparameter | Value |
|---|---|
| Base model | distilbert-base-uncased |
| Epochs | 1 |
| Batch size | 8 |
| Max sequence length | 256 |
| Optimizer | AdamW (default) |
| Metric | Value |
|---|---|
| Accuracy | 0.869 |