Downloads · 30 days
1
1% of all-time downloads
mjhogan165/distilbert-base-uncased-finetuned-emotion
distilbert-base-uncased-finetuned-emotion is a text classification model from mjhogan165. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of distilbert-base-uncased on the dair-ai/emotion dataset, classifying text into 6 emotions: sadness, joy, love, anger, fear, and surprise.
Downloads · 30 days
1
1% of all-time downloads
All-time downloads
107
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on the dair-ai/emotion dataset, classifying text into 6 emotions: sadness, joy, love, anger, fear, and surprise.
It achieves the following results on the evaluation set:
DistilBERT fine-tuned for single-label emotion classification. Given a short piece of text, it predicts which of 6 emotions it most likely expresses, with a confidence score for each class.
Best suited for short, first-person statements that directly express a feeling (e.g. "I feel amazed by how the universe works," "I'm really proud of this project") — matching the style of its training data.
Known limitation: the model is less reliable on indirect or evaluative text, such as YouTube/product/video comments, which more often comment on content ("great video but the pacing felt rushed") rather than state an emotion directly. In informal testing on YouTube-style comments, the model sometimes produced confidently incorrect predictions on this kind of input. A natural next step would be fine-tuning on a labeled sample of comment-style data to close this domain gap.
Trained on the dair-ai/emotion dataset (16,000 train / 2,000 validation / 2,000 test examples), a collection of short English tweets labeled with one of 6 emotions.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.8017 | 1.0 | 250 | 0.3070 | 0.9065 | 0.9048 |
| 0.2457 | 2.0 | 500 | 0.2168 | 0.927 | 0.9269 |