dair-ai/emotion
Viewer • Updated • 437k • 33.7k • 441
How to use srvmishra832/emotions-dataset-distilbert-base-uncased with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="srvmishra832/emotions-dataset-distilbert-base-uncased") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("srvmishra832/emotions-dataset-distilbert-base-uncased")
model = AutoModelForSequenceClassification.from_pretrained("srvmishra832/emotions-dataset-distilbert-base-uncased")This model is a fine-tuned version of distilbert-base-uncased on an the emotion dataset. It achieves the following results on the evaluation set:
DistilBERT base uncased model available at distilbert-base-uncased
Text classification, sentiment classification
Emotion dataset: Tweets categorized by 6 emotions - sadness, anger, joy, surprise, love, fear.
Dataset available at dair-ai/emotion
Training data: emotions train split, 16000 samples
Evaluation data: emotions test split, 2000 samples
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.7787 | 1.0 | 250 | 0.2564 | 0.9125 | 0.9139 |
| 0.2047 | 2.0 | 500 | 0.1869 | 0.9225 | 0.9234 |
| 0.1329 | 3.0 | 750 | 0.1705 | 0.923 | 0.9239 |
| 0.1045 | 4.0 | 1000 | 0.1618 | 0.924 | 0.9239 |
| 0.0866 | 5.0 | 1250 | 0.1613 | 0.9265 | 0.9261 |
Base model
distilbert/distilbert-base-uncased