Downloads · 30 days
12
0% of all-time downloads
hamzawaheed/emotion-classification-model
emotion-classification-model is a text classification model from hamzawaheed. 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. It achieves the following results on the evaluation set: - Loss: 0.1789 - Accuracy: 0.931
Downloads · 30 days
12
0% of all-time downloads
All-time downloads
2.5K
Public
Parameters
67M
9.4 GB 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. It achieves the following results on the evaluation set:
The Emotion Classification Model is a fine-tuned version of the distilbert-base-uncased transformer architecture, adapted specifically for classifying text into six distinct emotions. DistilBERT, a distilled version of BERT, offers a lightweight yet powerful foundation, enabling efficient training and inference without significant loss in performance.
This model leverages the pre-trained language understanding capabilities of DistilBERT to accurately categorize textual data into the following emotion classes:
By fine-tuning on the dair-ai/emotion dataset, the model has been optimized to recognize and differentiate subtle emotional cues in various text inputs, making it suitable for applications that require nuanced sentiment analysis and emotional intelligence.
The Emotion Classification Model is designed for a variety of applications where understanding the emotional tone of text is crucial. Suitable use cases include:
While the Emotion Classification Model demonstrates strong performance across various tasks, it has certain limitations:
dair-ai/emotion dataset, potentially affecting its performance across different demographics, cultures, or contexts.The model was trained and evaluated on the dair-ai/emotion dataset, a comprehensive collection of textual data annotated for emotion classification.
Prior to training, the dataset underwent the following preprocessing steps:
DistilBertTokenizerFast from the distilbert-base-uncased model to tokenize the input text. Each text sample was converted into token IDs, ensuring compatibility with the DistilBERT architecture.Trainer API.The model's performance was assessed using the following metrics:
The following hyperparameters were used during training:
6e-0516 per device32 per device20.012 (effectively simulating a batch size of 32)2 steps to effectively increase the batch size without exceeding GPU memory limits.2.40 minutes./logs10 stepsAfter training, the model achieved the following performance metrics:
93.10%93.10%