YourBestBuddy commited on
Commit
f5e4bce
·
verified ·
1 Parent(s): 8fb36d7

Update README.md

Browse files

![屏幕截图 2024-11-20 222048.png](https://cdn-uploads.huggingface.co/production/uploads/672c3630fc20b2b2145847af/sORKlbQC-N9e1y9AcCn53.png)

Files changed (1) hide show
  1. README.md +64 -49
README.md CHANGED
@@ -1,49 +1,64 @@
1
- ---
2
- library_name: transformers
3
- license: apache-2.0
4
- base_model: distilbert-base-uncased
5
- tags:
6
- - generated_from_trainer
7
- model-index:
8
- - name: results
9
- results: []
10
- ---
11
-
12
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
- should probably proofread and complete it, then remove this comment. -->
14
-
15
- # results
16
-
17
- This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
18
-
19
- ## Model description
20
-
21
- More information needed
22
-
23
- ## Intended uses & limitations
24
-
25
- More information needed
26
-
27
- ## Training and evaluation data
28
-
29
- More information needed
30
-
31
- ## Training procedure
32
-
33
- ### Training hyperparameters
34
-
35
- The following hyperparameters were used during training:
36
- - learning_rate: 5e-05
37
- - train_batch_size: 256
38
- - eval_batch_size: 256
39
- - seed: 42
40
- - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
41
- - lr_scheduler_type: linear
42
- - num_epochs: 5
43
-
44
- ### Framework versions
45
-
46
- - Transformers 4.46.2
47
- - Pytorch 2.5.1+cpu
48
- - Datasets 3.1.0
49
- - Tokenizers 0.20.3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilbert-base-uncased
5
+ tags:
6
+ - emotion-classification
7
+ - text-classification
8
+ - distilbert
9
+ datasets:
10
+ - dair-ai/emotion
11
+ language:
12
+ - en
13
+ metrics:
14
+ - accuracy
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # results
21
+
22
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an Emotion Dataset.
23
+
24
+ ## Model description
25
+
26
+ This model fine-tunes DistilBERT for emotion classification. It can detect emotions in language and then classify them into: sadness, joy, love, anger, fear, surprise.
27
+
28
+ ## Intended uses & limitations
29
+
30
+ Used to explain the inner emotions of simple sentences. This model may lack contextual reasoning ability and cannot understand connecting words such as transitions.
31
+
32
+ ## Training and evaluation data
33
+
34
+ - Training Dataset: dair-ai/emotion (16,000 examples)
35
+ - Validation set: 2,000 examples
36
+ - Test set: 2,000 examples
37
+ - Validation Accuracy:
38
+ - epoch1:0.893
39
+ - epoch2:0.9365
40
+ - epoch3:0.937
41
+ - epoch4:0.939
42
+ - epoch5:0.942
43
+ - Test Accuracy: 0.942
44
+ - Training Time: 1:57:01
45
+
46
+ ## Training procedure
47
+
48
+ ### Training hyperparameters
49
+
50
+ The following hyperparameters were used during training:
51
+ - learning_rate: 5e-05
52
+ - train_batch_size: 256
53
+ - eval_batch_size: 256
54
+ - seed: 42
55
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
56
+ - lr_scheduler_type: linear
57
+ - num_epochs: 5
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.46.2
62
+ - Pytorch 2.5.1+cpu
63
+ - Datasets 3.1.0
64
+ - Tokenizers 0.20.3