SkyWater21 commited on
Commit
48f757d
·
verified ·
1 Parent(s): 2423da6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -3
README.md CHANGED
@@ -1,3 +1,69 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ datasets:
4
+ - SkyWater21/lv_emotions
5
+ language:
6
+ - lv
7
+ base_model:
8
+ - AiLab-IMCS-UL/lvbert
9
+ ---
10
+ Fine-tuned [LVBERT](https://huggingface.co/AiLab-IMCS-UL/lvbert) for multi-label emotion classification task.
11
+
12
+ Model was trained on [lv_emotions](https://huggingface.co/datasets/SkyWater21/lv_emotions) dataset. This dataset is Latvian translation of [GoEmotions](https://huggingface.co/datasets/go_emotions) and [Twitter Emotions](https://huggingface.co/datasets/SkyWater21/lv_twitter_emotions) dataset. Google Translate was used to generate the machine translation.
13
+
14
+ Original 26 emotions were mapped to 6 base emotions as per Dr. Ekman theory.
15
+
16
+ Labels predicted by classifier:
17
+ ```yaml
18
+ 0: anger
19
+ 1: disgust
20
+ 2: fear
21
+ 3: joy
22
+ 4: sadness
23
+ 5: surprise
24
+ 6: neutral
25
+ ```
26
+
27
+ Seed used for random number generator is 42:
28
+ ```python
29
+ def set_seed(seed=42):
30
+ random.seed(seed)
31
+ np.random.seed(seed)
32
+ torch.manual_seed(seed)
33
+ if torch.cuda.is_available():
34
+ torch.cuda.manual_seed_all(seed)
35
+ ```
36
+
37
+ Training parameters:
38
+ ```yaml
39
+ max_length: null
40
+ batch_size: 32
41
+ shuffle: True
42
+ num_workers: 4
43
+ pin_memory: False
44
+ drop_last: False
45
+ optimizer: adam
46
+ lr: 0.000005
47
+ weight_decay: 0
48
+ problem_type: multi_label_classification
49
+ num_epochs: 3
50
+ ```
51
+
52
+
53
+ Evaluation results on test split of [lv_go_emotions](https://huggingface.co/datasets/SkyWater21/lv_emotions/viewer/combined/lv_go_emotions_test)
54
+ | |Precision|Recall|F1-Score|Support|
55
+ |--------------|---------|------|--------|-------|
56
+ |anger | 0.57| 0.36| 0.44| 726|
57
+ |disgust | 0.42| 0.29| 0.35| 123|
58
+ |fear | 0.59| 0.43| 0.50| 98|
59
+ |joy | 0.78| 0.80| 0.79| 2104|
60
+ |sadness | 0.65| 0.42| 0.51| 379|
61
+ |surprise | 0.62| 0.38| 0.47| 677|
62
+ |neutral | 0.66| 0.58| 0.62| 1787|
63
+ |micro avg | 0.70| 0.59| 0.64| 5894|
64
+ |macro avg | 0.61| 0.46| 0.52| 5894|
65
+ |weighted avg | 0.68| 0.59| 0.63| 5894|
66
+ |samples avg | 0.62| 0.61| 0.61| 5894|
67
+
68
+ Evaluation results on test split of [lv_twitter_emotions](https://huggingface.co/datasets/SkyWater21/lv_emotions/viewer/combined/lv_twitter_emotions_test)
69
+ TBD