saideep-arikontham commited on
Commit
c13ee19
1 Parent(s): 095d097

trump_stance_detection

Browse files
README.md ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - generated_from_trainer
5
+ base_model: cardiffnlp/twitter-roberta-base-sentiment-latest
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ model-index:
11
+ - name: twitter-roberta-base-sentiment-latest-trump-stance-1
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # twitter-roberta-base-sentiment-latest-trump-stance-1
19
+
20
+ This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.1168
23
+ - Accuracy: {'accuracy': 0.6666666666666666}
24
+ - Precision: {'precision': 0.5697940503432495}
25
+ - Recall: {'recall': 0.7302052785923754}
26
+ - F1 Score: {'f1': 0.6401028277634961}
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 0.001
46
+ - train_batch_size: 4
47
+ - eval_batch_size: 4
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 50
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 Score |
56
+ |:-------------:|:-----:|:------:|:---------------:|:----------------------:|:---------------------------------:|:-------------------:|:--------------------------:|
57
+ | 0.583 | 1.0 | 3600 | 0.3772 | {'accuracy': 0.83875} | {'precision': 0.812933025404157} | {'recall': 0.88} | {'f1': 0.8451380552220888} |
58
+ | 0.5621 | 2.0 | 7200 | 0.3725 | {'accuracy': 0.853125} | {'precision': 0.9407176287051482} | {'recall': 0.75375} | {'f1': 0.8369188063844553} |
59
+ | 0.5813 | 3.0 | 10800 | 1.0373 | {'accuracy': 0.625625} | {'precision': 0.5719398711524696} | {'recall': 0.99875} | {'f1': 0.7273554847519345} |
60
+ | 0.5317 | 4.0 | 14400 | 0.3697 | {'accuracy': 0.875625} | {'precision': 0.8917861799217731} | {'recall': 0.855} | {'f1': 0.8730057434588385} |
61
+ | 0.5498 | 5.0 | 18000 | 0.4457 | {'accuracy': 0.8525} | {'precision': 0.8551637279596978} | {'recall': 0.84875} | {'f1': 0.8519447929736512} |
62
+ | 0.5388 | 6.0 | 21600 | 0.4715 | {'accuracy': 0.829375} | {'precision': 0.9136577708006279} | {'recall': 0.7275} | {'f1': 0.8100208768267223} |
63
+ | 0.5885 | 7.0 | 25200 | 0.3773 | {'accuracy': 0.85875} | {'precision': 0.8836898395721925} | {'recall': 0.82625} | {'f1': 0.8540051679586563} |
64
+ | 0.4961 | 8.0 | 28800 | 0.3819 | {'accuracy': 0.869375} | {'precision': 0.9053497942386831} | {'recall': 0.825} | {'f1': 0.8633093525179856} |
65
+ | 0.5421 | 9.0 | 32400 | 0.4011 | {'accuracy': 0.85875} | {'precision': 0.8239277652370203} | {'recall': 0.9125} | {'f1': 0.8659549228944247} |
66
+ | 0.5123 | 10.0 | 36000 | 0.3404 | {'accuracy': 0.88125} | {'precision': 0.9034391534391535} | {'recall': 0.85375} | {'f1': 0.877892030848329} |
67
+ | 0.5996 | 11.0 | 39600 | 0.3435 | {'accuracy': 0.880625} | {'precision': 0.8801498127340824} | {'recall': 0.88125} | {'f1': 0.8806995627732667} |
68
+ | 0.4871 | 12.0 | 43200 | 0.2972 | {'accuracy': 0.890625} | {'precision': 0.9021879021879022} | {'recall': 0.87625} | {'f1': 0.8890298034242232} |
69
+ | 0.5272 | 13.0 | 46800 | 0.3629 | {'accuracy': 0.874375} | {'precision': 0.9423929098966026} | {'recall': 0.7975} | {'f1': 0.8639133378469871} |
70
+ | 0.5897 | 14.0 | 50400 | 0.3164 | {'accuracy': 0.88} | {'precision': 0.9075067024128687} | {'recall': 0.84625} | {'f1': 0.8758085381630013} |
71
+ | 0.4963 | 15.0 | 54000 | 0.3343 | {'accuracy': 0.87625} | {'precision': 0.922752808988764} | {'recall': 0.82125} | {'f1': 0.8690476190476191} |
72
+ | 0.5132 | 16.0 | 57600 | 0.5593 | {'accuracy': 0.855625} | {'precision': 0.9330289193302892} | {'recall': 0.76625} | {'f1': 0.8414550446122169} |
73
+ | 0.447 | 17.0 | 61200 | 0.3651 | {'accuracy': 0.874375} | {'precision': 0.8544378698224852} | {'recall': 0.9025} | {'f1': 0.8778115501519757} |
74
+ | 0.5189 | 18.0 | 64800 | 0.3919 | {'accuracy': 0.878125} | {'precision': 0.9315263908701854} | {'recall': 0.81625} | {'f1': 0.8700866089273818} |
75
+ | 0.4835 | 19.0 | 68400 | 0.5706 | {'accuracy': 0.846875} | {'precision': 0.9541734860883797} | {'recall': 0.72875} | {'f1': 0.8263642806520198} |
76
+ | 0.455 | 20.0 | 72000 | 0.3523 | {'accuracy': 0.881875} | {'precision': 0.8813982521847691} | {'recall': 0.8825} | {'f1': 0.8819487820112429} |
77
+ | 0.4791 | 21.0 | 75600 | 0.3292 | {'accuracy': 0.884375} | {'precision': 0.8546712802768166} | {'recall': 0.92625} | {'f1': 0.8890221955608878} |
78
+ | 0.512 | 22.0 | 79200 | 0.4456 | {'accuracy': 0.87} | {'precision': 0.9391691394658753} | {'recall': 0.79125} | {'f1': 0.858887381275441} |
79
+ | 0.4783 | 23.0 | 82800 | 0.3283 | {'accuracy': 0.880625} | {'precision': 0.9188445667125172} | {'recall': 0.835} | {'f1': 0.8749181401440733} |
80
+ | 0.4699 | 24.0 | 86400 | 0.3399 | {'accuracy': 0.885} | {'precision': 0.9074074074074074} | {'recall': 0.8575} | {'f1': 0.8817480719794345} |
81
+ | 0.4485 | 25.0 | 90000 | 0.3156 | {'accuracy': 0.89} | {'precision': 0.8949367088607595} | {'recall': 0.88375} | {'f1': 0.889308176100629} |
82
+ | 0.4305 | 26.0 | 93600 | 0.3105 | {'accuracy': 0.894375} | {'precision': 0.9092088197146563} | {'recall': 0.87625} | {'f1': 0.8924252068746021} |
83
+ | 0.4704 | 27.0 | 97200 | 0.3528 | {'accuracy': 0.879375} | {'precision': 0.8634730538922155} | {'recall': 0.90125} | {'f1': 0.8819571865443425} |
84
+ | 0.4589 | 28.0 | 100800 | 0.3534 | {'accuracy': 0.879375} | {'precision': 0.8696711327649208} | {'recall': 0.8925} | {'f1': 0.8809376927822332} |
85
+ | 0.4831 | 29.0 | 104400 | 0.3315 | {'accuracy': 0.891875} | {'precision': 0.9108781127129751} | {'recall': 0.86875} | {'f1': 0.889315419065899} |
86
+ | 0.4931 | 30.0 | 108000 | 0.3200 | {'accuracy': 0.891875} | {'precision': 0.9185580774365821} | {'recall': 0.86} | {'f1': 0.8883150419625565} |
87
+ | 0.4286 | 31.0 | 111600 | 0.3488 | {'accuracy': 0.8825} | {'precision': 0.9180327868852459} | {'recall': 0.84} | {'f1': 0.8772845953002611} |
88
+ | 0.4309 | 32.0 | 115200 | 0.3192 | {'accuracy': 0.891875} | {'precision': 0.8875154511742892} | {'recall': 0.8975} | {'f1': 0.8924798011187073} |
89
+ | 0.3896 | 33.0 | 118800 | 0.3294 | {'accuracy': 0.881875} | {'precision': 0.8632580261593341} | {'recall': 0.9075} | {'f1': 0.8848263254113345} |
90
+ | 0.4327 | 34.0 | 122400 | 0.3003 | {'accuracy': 0.899375} | {'precision': 0.9346938775510204} | {'recall': 0.85875} | {'f1': 0.895114006514658} |
91
+ | 0.4179 | 35.0 | 126000 | 0.3189 | {'accuracy': 0.898125} | {'precision': 0.9368998628257887} | {'recall': 0.85375} | {'f1': 0.8933943754087639} |
92
+ | 0.4023 | 36.0 | 129600 | 0.3284 | {'accuracy': 0.8775} | {'precision': 0.8408577878103838} | {'recall': 0.93125} | {'f1': 0.8837485172004745} |
93
+ | 0.4285 | 37.0 | 133200 | 0.3221 | {'accuracy': 0.894375} | {'precision': 0.9280868385345997} | {'recall': 0.855} | {'f1': 0.8900455432661027} |
94
+ | 0.3988 | 38.0 | 136800 | 0.2861 | {'accuracy': 0.896875} | {'precision': 0.8905289052890529} | {'recall': 0.905} | {'f1': 0.8977061376317421} |
95
+ | 0.4034 | 39.0 | 140400 | 0.3501 | {'accuracy': 0.895625} | {'precision': 0.9438990182328191} | {'recall': 0.84125} | {'f1': 0.8896232650363516} |
96
+ | 0.3743 | 40.0 | 144000 | 0.3654 | {'accuracy': 0.886875} | {'precision': 0.9176788124156545} | {'recall': 0.85} | {'f1': 0.8825438027255029} |
97
+ | 0.3979 | 41.0 | 147600 | 0.3230 | {'accuracy': 0.899375} | {'precision': 0.9311740890688259} | {'recall': 0.8625} | {'f1': 0.8955223880597015} |
98
+ | 0.3808 | 42.0 | 151200 | 0.2978 | {'accuracy': 0.90375} | {'precision': 0.9205729166666666} | {'recall': 0.88375} | {'f1': 0.9017857142857143} |
99
+ | 0.3777 | 43.0 | 154800 | 0.2805 | {'accuracy': 0.899375} | {'precision': 0.9220607661822986} | {'recall': 0.8725} | {'f1': 0.8965960179833012} |
100
+ | 0.3631 | 44.0 | 158400 | 0.2984 | {'accuracy': 0.898125} | {'precision': 0.9163398692810457} | {'recall': 0.87625} | {'f1': 0.8958466453674121} |
101
+ | 0.3674 | 45.0 | 162000 | 0.2924 | {'accuracy': 0.90375} | {'precision': 0.9376693766937669} | {'recall': 0.865} | {'f1': 0.8998699609882965} |
102
+ | 0.3539 | 46.0 | 165600 | 0.3158 | {'accuracy': 0.89375} | {'precision': 0.899746192893401} | {'recall': 0.88625} | {'f1': 0.8929471032745592} |
103
+ | 0.3557 | 47.0 | 169200 | 0.2861 | {'accuracy': 0.9} | {'precision': 0.9145077720207254} | {'recall': 0.8825} | {'f1': 0.8982188295165394} |
104
+ | 0.38 | 48.0 | 172800 | 0.2962 | {'accuracy': 0.894375} | {'precision': 0.9029374201787995} | {'recall': 0.88375} | {'f1': 0.8932406822488945} |
105
+ | 0.3754 | 49.0 | 176400 | 0.2905 | {'accuracy': 0.9} | {'precision': 0.9166666666666666} | {'recall': 0.88} | {'f1': 0.8979591836734694} |
106
+ | 0.3717 | 50.0 | 180000 | 0.2880 | {'accuracy': 0.89875} | {'precision': 0.9153645833333334} | {'recall': 0.87875} | {'f1': 0.8966836734693877} |
107
+
108
+
109
+ ### Framework versions
110
+
111
+ - PEFT 0.10.0
112
+ - Transformers 4.38.2
113
+ - Pytorch 2.2.1
114
+ - Datasets 2.18.0
115
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.01,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 4,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "out_proj"
24
+ ],
25
+ "task_type": "SEQ_CLS",
26
+ "use_dora": false,
27
+ "use_rslora": false
28
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64f8d11d67111c9ef35af6d08bc35cda5c8976c243a35792d9e6230c17c0d929
3
+ size 2406728
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
runs/Apr22_02-12-34_Saideeps-Air.lan/events.out.tfevents.1713766354.Saideeps-Air.lan.52296.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e683bf0663166dc9f62f5aa95c418768dbc214ec14fa42162cf361a138bc538
3
+ size 96361
runs/Apr22_02-12-34_Saideeps-Air.lan/events.out.tfevents.1713856891.Saideeps-Air.lan.52296.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d1c1c24f8174cef2baa7674d84755f868cc0b41289fbbaf2cd4bdd5a77f302e
3
+ size 364
special_tokens_map.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": "</s>",
31
+ "sep_token": {
32
+ "content": "</s>",
33
+ "lstrip": false,
34
+ "normalized": true,
35
+ "rstrip": false,
36
+ "single_word": false
37
+ },
38
+ "unk_token": {
39
+ "content": "<unk>",
40
+ "lstrip": false,
41
+ "normalized": true,
42
+ "rstrip": false,
43
+ "single_word": false
44
+ }
45
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "pad_token": "</s>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1dbd805c6285170a59147537cd942c26afb46cadbd1f34ce63032b5ac6726a0
3
+ size 4984
vocab.json ADDED
The diff for this file is too large to render. See raw diff