agoor97 commited on
Commit
d2bdc10
·
verified ·
1 Parent(s): 70c4927
Files changed (1) hide show
  1. README.md +67 -17
README.md CHANGED
@@ -3,36 +3,78 @@ license: apache-2.0
3
  base_model: distilbert-base-uncased
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  - f1
 
 
 
 
 
 
 
 
9
  model-index:
10
- - name: distilbert-base-uncased-finetuned-depi-before
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
- # distilbert-base-uncased-finetuned-depi-before
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.1719
22
- - Accuracy: 0.93
23
- - F1: 0.9300
24
 
25
  ## Model description
26
 
27
- More information needed
 
28
 
29
  ## Intended uses & limitations
30
 
31
- More information needed
 
 
 
 
 
 
 
32
 
33
  ## Training and evaluation data
 
34
 
35
- More information needed
 
 
 
 
 
 
36
 
37
  ## Training procedure
38
 
@@ -45,19 +87,27 @@ The following hyperparameters were used during training:
45
  - seed: 42
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
- - num_epochs: 2
49
 
50
  ### Training results
51
 
52
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
53
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
54
- | 0.6166 | 1.0 | 500 | 0.2198 | 0.922 | 0.9227 |
55
- | 0.1777 | 2.0 | 1000 | 0.1719 | 0.93 | 0.9300 |
 
 
 
 
 
 
 
 
56
 
57
 
58
  ### Framework versions
59
 
60
- - Transformers 4.44.0
61
- - Pytorch 2.6.0+cu124
62
- - Datasets 2.21.0
63
- - Tokenizers 0.19.1
 
3
  base_model: distilbert-base-uncased
4
  tags:
5
  - generated_from_trainer
6
+ datasets:
7
+ - emotion
8
  metrics:
9
  - accuracy
10
  - f1
11
+ widget:
12
+ - text: "on a boat trip to denmark"
13
+ example_title: "Example 1"
14
+ - text: "i was feeling listless from the need of new things something different"
15
+ example_title: "Example 2"
16
+ - text: 'i know im feeling agitated as it is from a side effect of the too high dose'
17
+ example_title: 'Example 3'
18
+
19
  model-index:
20
+ - name: distilbert-base-uncased-finetuned-emotions-dataset
21
+ results:
22
+ - task:
23
+ name: Text Classification
24
+ type: text-classification
25
+ dataset:
26
+ name: emotion
27
+ type: emotion
28
+ config: split
29
+ split: validation
30
+ args: split
31
+ metrics:
32
+ - name: Accuracy
33
+ type: accuracy
34
+ value: 0.9395
35
+ - name: F1
36
+ type: f1
37
+ value: 0.9396359245863207
38
+ pipeline_tag: text-classification
39
  ---
40
 
41
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
42
  should probably proofread and complete it, then remove this comment. -->
43
 
44
+ # distilbert-base-uncased-finetuned-emotions-dataset
45
 
46
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
47
  It achieves the following results on the evaluation set:
48
+ - Loss: 0.2428
49
+ - Accuracy: 0.9395
50
+ - F1: 0.9396
51
 
52
  ## Model description
53
 
54
+ The model has been trained to classify text inputs into distinct emotional categories based on the fine-tuned understanding of the emotions dataset.
55
+ The fine-tuned model has demonstrated high accuracy and F1 scores on the evaluation set.
56
 
57
  ## Intended uses & limitations
58
 
59
+ #### Intended Uses
60
+ - Sentiment analysis
61
+ - Emotional classification in text
62
+ - Emotion-based recommendation systems
63
+
64
+ #### Limitations
65
+ - May show biases based on the training dataset
66
+ - Optimized for emotional classification and may not cover nuanced emotional subtleties
67
 
68
  ## Training and evaluation data
69
+ Emotions dataset with labeled emotional categories [here](https://huggingface.co/datasets/dair-ai/emotion).
70
 
71
+ #### The emotional categories are as follows:
72
+ - LABEL_0: sadness
73
+ - LABEL_1: joy
74
+ - LABEL_2: love
75
+ - LABEL_3: anger
76
+ - LABEL_4: fear
77
+ - LABEL_5: surprise
78
 
79
  ## Training procedure
80
 
 
87
  - seed: 42
88
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
89
  - lr_scheduler_type: linear
90
+ - num_epochs: 10
91
 
92
  ### Training results
93
 
94
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
95
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
96
+ | 0.5929 | 1.0 | 500 | 0.2345 | 0.9185 | 0.9180 |
97
+ | 0.1642 | 2.0 | 1000 | 0.1716 | 0.9335 | 0.9342 |
98
+ | 0.1163 | 3.0 | 1500 | 0.1501 | 0.9405 | 0.9407 |
99
+ | 0.0911 | 4.0 | 2000 | 0.1698 | 0.933 | 0.9331 |
100
+ | 0.0741 | 5.0 | 2500 | 0.1926 | 0.932 | 0.9323 |
101
+ | 0.0559 | 6.0 | 3000 | 0.2033 | 0.935 | 0.9353 |
102
+ | 0.0464 | 7.0 | 3500 | 0.2156 | 0.935 | 0.9353 |
103
+ | 0.0335 | 8.0 | 4000 | 0.2354 | 0.9405 | 0.9408 |
104
+ | 0.0257 | 9.0 | 4500 | 0.2410 | 0.9395 | 0.9396 |
105
+ | 0.0214 | 10.0 | 5000 | 0.2428 | 0.9395 | 0.9396 |
106
 
107
 
108
  ### Framework versions
109
 
110
+ - Transformers 4.35.2
111
+ - Pytorch 2.1.0+cu118
112
+ - Datasets 2.15.0
113
+ - Tokenizers 0.15.0