Training in progress, epoch 1
Browse files- README.md +48 -66
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,82 +1,64 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
### Key Features
|
| 14 |
-
- Efficient and lightweight for deployment.
|
| 15 |
-
- High accuracy for emotion detection tasks.
|
| 16 |
-
- Pretrained on a diverse dataset and fine-tuned for high specificity to emotions.
|
| 17 |
-
|
| 18 |
-
## Intended Uses & Limitations
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
|
| 25 |
-
|
| 26 |
-
- May not generalize well to datasets with highly domain-specific language.
|
| 27 |
-
- Might struggle with sarcasm, irony, or other nuanced forms of language.
|
| 28 |
-
- The model is English-specific and may not perform well on non-English text.
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
-
- **Dataset:** [dair-ai/emotion](https://huggingface.co/datasets/dair-ai/emotion)
|
| 34 |
-
- **Training Set Size:** 16,000 examples
|
| 35 |
-
- **Dataset Description:** The dataset contains English sentences labeled with six emotional categories: anger, joy, optimism, sadness, fear, and disgust.
|
| 36 |
|
| 37 |
-
|
| 38 |
-
- **Training Time:** ~204 seconds
|
| 39 |
-
- **Training Loss:** 0.2034
|
| 40 |
-
- **Validation Accuracy:** 93.55%
|
| 41 |
-
- **Test Accuracy:** 93.3%
|
| 42 |
|
| 43 |
-
## Training
|
| 44 |
|
| 45 |
-
|
| 46 |
-
- **Learning Rate:** 5e-05
|
| 47 |
-
- **Batch Size:** 16 (train and evaluation)
|
| 48 |
-
- **Epochs:** 3
|
| 49 |
-
- **Seed:** 42
|
| 50 |
-
- **Optimizer:** AdamW (betas=(0.9,0.999), epsilon=1e-08)
|
| 51 |
-
- **Learning Rate Scheduler:** Linear
|
| 52 |
-
- **Mixed Precision Training:** Native AMP
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
-
|-------|---------------|-----------------|---------------------|
|
| 58 |
-
| 1 | 0.2293 | 0.1746 | 93.35% |
|
| 59 |
-
| 2 | 0.1315 | 0.1529 | 93.70% |
|
| 60 |
-
| 3 | 0.0798 | 0.1554 | 93.55% |
|
| 61 |
|
| 62 |
-
|
| 63 |
-
-
|
| 64 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
-
###
|
| 67 |
-
- **Training Speed:** ~204 samples/second
|
| 68 |
-
- **Evaluation Speed:** ~986 samples/second
|
| 69 |
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
-
```python
|
| 73 |
-
from transformers import pipeline
|
| 74 |
|
| 75 |
-
|
| 76 |
-
classifier = pipeline("text-classification", model="Panda0116/emotion-classification-model")
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: distilbert-base-uncased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: emotion-classification-model
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
|
| 17 |
+
# emotion-classification-model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.1565
|
| 22 |
+
- Accuracy: 0.9415
|
| 23 |
|
| 24 |
+
## Model description
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
More information needed
|
| 27 |
|
| 28 |
+
## Intended uses & limitations
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
## Training and evaluation data
|
| 33 |
|
| 34 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
## Training procedure
|
| 37 |
|
| 38 |
+
### Training hyperparameters
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 5e-05
|
| 42 |
+
- train_batch_size: 16
|
| 43 |
+
- eval_batch_size: 16
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 3
|
| 48 |
+
- mixed_precision_training: Native AMP
|
| 49 |
|
| 50 |
+
### Training results
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 54 |
+
| 0.225 | 1.0 | 1000 | 0.1815 | 0.9295 |
|
| 55 |
+
| 0.1279 | 2.0 | 2000 | 0.1561 | 0.933 |
|
| 56 |
+
| 0.0795 | 3.0 | 3000 | 0.1565 | 0.9415 |
|
| 57 |
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
### Framework versions
|
|
|
|
| 60 |
|
| 61 |
+
- Transformers 4.46.2
|
| 62 |
+
- Pytorch 2.5.1+cu124
|
| 63 |
+
- Datasets 3.1.0
|
| 64 |
+
- Tokenizers 0.20.3
|
|
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 267844872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a2e1d6e8106eeab22aa0dd633c5d22469717b9d052434ee2fa851bae2ccdf37
|
| 3 |
size 267844872
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5304
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59ed4057eb7252d272121f46977d394a8feea2f5d51f6d4c77423b5998a764ba
|
| 3 |
size 5304
|