dair-ai/emotion
Viewer โข Updated โข 437k โข 37.3k โข 449
How to use HashiruGunathilake/distilbert-base-uncased-finetuned-emotions with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="HashiruGunathilake/distilbert-base-uncased-finetuned-emotions", device_map="auto") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("HashiruGunathilake/distilbert-base-uncased-finetuned-emotions")
model = AutoModelForSequenceClassification.from_pretrained("HashiruGunathilake/distilbert-base-uncased-finetuned-emotions", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on dair-ai/emotion dataset. It achieves the following results on the evaluation set:
distilbert-base-uncased base model finetuned on dair-ai/emotion dataset.
Can be used to classify emotions, sentiment analysis
0: Sadness ๐ข
1: Joy ๐
2: Love โค๏ธ
3: Anger ๐
4: Fear ๐จ
5: Surprise ๐ฒ
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.0567 | 1.0 | 250 | 0.2055 | 0.9345 | 0.9348 |
| 0.0559 | 2.0 | 500 | 0.2037 | 0.9355 | 0.9358 |
| 0.067 | 3.0 | 750 | 0.1970 | 0.9425 | 0.9426 |
Base model
distilbert/distilbert-base-uncased