dair-ai/emotion
Viewer • Updated • 437k • 33.7k • 441
How to use Chhabi/distilbert-base-uncased-finetuned-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Chhabi/distilbert-base-uncased-finetuned-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Chhabi/distilbert-base-uncased-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("Chhabi/distilbert-base-uncased-finetuned-emotion")This model is a fine-tuned version of distilbert-base-uncased on the emotion dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.7715 | 1.0 | 250 | 0.2577 | 0.918 | 0.9183 |
| 0.2028 | 2.0 | 500 | 0.1631 | 0.932 | 0.9317 |
| 0.1359 | 3.0 | 750 | 0.1482 | 0.9345 | 0.9350 |
| 0.1076 | 4.0 | 1000 | 0.1352 | 0.94 | 0.9400 |
| 0.091 | 5.0 | 1250 | 0.1364 | 0.94 | 0.9402 |
Base model
distilbert/distilbert-base-uncased