baptle commited on
Commit
4b2ba42
1 Parent(s): 60f6a73

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - text-classification
6
+ widget:
7
+ - text: "I love AutoTrain"
8
+ datasets:
9
+ - FinBERT_market_based/autotrain-data
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.9176467061042786
18
+
19
+ f1_macro: 0.49749240436690023
20
+
21
+ f1_micro: 0.5627105467737756
22
+
23
+ f1_weighted: 0.5279720746084178
24
+
25
+ precision_macro: 0.5386355574899088
26
+
27
+ precision_micro: 0.5627105467737756
28
+
29
+ precision_weighted: 0.5462149036191247
30
+
31
+ recall_macro: 0.517542664344306
32
+
33
+ recall_micro: 0.5627105467737756
34
+
35
+ recall_weighted: 0.5627105467737756
36
+
37
+ accuracy: 0.5627105467737756
checkpoint-1432/config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ProsusAI/finbert",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": 0.0,
15
+ "1": 1.0,
16
+ "2": 2.0
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "0.0": 0,
22
+ "1.0": 1,
23
+ "2.0": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "bert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 0,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.37.0",
35
+ "type_vocab_size": 2,
36
+ "use_cache": true,
37
+ "vocab_size": 30522
38
+ }
checkpoint-1432/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55d86bd31ca8302d6896ed443d1ae1eeee5c30c45b1131eec9004afead2ced7a
3
+ size 437961724
checkpoint-1432/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbeeb71c3c8fda707e5e1501602ac3f7b2b25638fb3bb0d6f674c91350506259
3
+ size 876038906
checkpoint-1432/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fecb1fcf21854d6188eae43ced3caf6b48b76af68201aed32544b887453d892
3
+ size 13990
checkpoint-1432/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7ecbcc0fd9b29005416d1c03416c6138c0a8e580eb1fbe047baee83770bec33
3
+ size 1064
checkpoint-1432/trainer_state.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9176467061042786,
3
+ "best_model_checkpoint": "FinBERT_market_based/checkpoint-1432",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1432,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.07,
13
+ "learning_rate": 1.1162790697674418e-05,
14
+ "loss": 1.4577,
15
+ "step": 48
16
+ },
17
+ {
18
+ "epoch": 0.13,
19
+ "learning_rate": 2.2325581395348837e-05,
20
+ "loss": 1.0761,
21
+ "step": 96
22
+ },
23
+ {
24
+ "epoch": 0.2,
25
+ "learning_rate": 3.348837209302326e-05,
26
+ "loss": 1.0211,
27
+ "step": 144
28
+ },
29
+ {
30
+ "epoch": 0.27,
31
+ "learning_rate": 4.465116279069767e-05,
32
+ "loss": 1.0051,
33
+ "step": 192
34
+ },
35
+ {
36
+ "epoch": 0.34,
37
+ "learning_rate": 4.935333678220383e-05,
38
+ "loss": 0.9814,
39
+ "step": 240
40
+ },
41
+ {
42
+ "epoch": 0.4,
43
+ "learning_rate": 4.811174340403518e-05,
44
+ "loss": 0.9718,
45
+ "step": 288
46
+ },
47
+ {
48
+ "epoch": 0.47,
49
+ "learning_rate": 4.687015002586653e-05,
50
+ "loss": 0.9401,
51
+ "step": 336
52
+ },
53
+ {
54
+ "epoch": 0.54,
55
+ "learning_rate": 4.562855664769788e-05,
56
+ "loss": 0.9486,
57
+ "step": 384
58
+ },
59
+ {
60
+ "epoch": 0.6,
61
+ "learning_rate": 4.438696326952923e-05,
62
+ "loss": 0.9477,
63
+ "step": 432
64
+ },
65
+ {
66
+ "epoch": 0.67,
67
+ "learning_rate": 4.3145369891360584e-05,
68
+ "loss": 0.9236,
69
+ "step": 480
70
+ },
71
+ {
72
+ "epoch": 0.74,
73
+ "learning_rate": 4.190377651319193e-05,
74
+ "loss": 0.9295,
75
+ "step": 528
76
+ },
77
+ {
78
+ "epoch": 0.8,
79
+ "learning_rate": 4.066218313502328e-05,
80
+ "loss": 0.9388,
81
+ "step": 576
82
+ },
83
+ {
84
+ "epoch": 0.87,
85
+ "learning_rate": 3.942058975685463e-05,
86
+ "loss": 0.9446,
87
+ "step": 624
88
+ },
89
+ {
90
+ "epoch": 0.94,
91
+ "learning_rate": 3.8178996378685985e-05,
92
+ "loss": 0.9324,
93
+ "step": 672
94
+ },
95
+ {
96
+ "epoch": 1.0,
97
+ "eval_accuracy": 0.5537056232184504,
98
+ "eval_f1_macro": 0.4530869728302888,
99
+ "eval_f1_micro": 0.5537056232184504,
100
+ "eval_f1_weighted": 0.49220984693785635,
101
+ "eval_loss": 0.9287100434303284,
102
+ "eval_precision_macro": 0.5454170327986705,
103
+ "eval_precision_micro": 0.5537056232184504,
104
+ "eval_precision_weighted": 0.5470355528203532,
105
+ "eval_recall_macro": 0.49494460688671565,
106
+ "eval_recall_micro": 0.5537056232184504,
107
+ "eval_recall_weighted": 0.5537056232184504,
108
+ "eval_runtime": 2411.8627,
109
+ "eval_samples_per_second": 6.4,
110
+ "eval_steps_per_second": 0.05,
111
+ "step": 716
112
+ },
113
+ {
114
+ "epoch": 1.01,
115
+ "learning_rate": 3.693740300051733e-05,
116
+ "loss": 0.9273,
117
+ "step": 720
118
+ },
119
+ {
120
+ "epoch": 1.07,
121
+ "learning_rate": 3.569580962234868e-05,
122
+ "loss": 0.901,
123
+ "step": 768
124
+ },
125
+ {
126
+ "epoch": 1.14,
127
+ "learning_rate": 3.445421624418003e-05,
128
+ "loss": 0.8876,
129
+ "step": 816
130
+ },
131
+ {
132
+ "epoch": 1.21,
133
+ "learning_rate": 3.3212622866011386e-05,
134
+ "loss": 0.8826,
135
+ "step": 864
136
+ },
137
+ {
138
+ "epoch": 1.27,
139
+ "learning_rate": 3.197102948784273e-05,
140
+ "loss": 0.8802,
141
+ "step": 912
142
+ },
143
+ {
144
+ "epoch": 1.34,
145
+ "learning_rate": 3.072943610967408e-05,
146
+ "loss": 0.8896,
147
+ "step": 960
148
+ },
149
+ {
150
+ "epoch": 1.41,
151
+ "learning_rate": 2.9487842731505433e-05,
152
+ "loss": 0.885,
153
+ "step": 1008
154
+ },
155
+ {
156
+ "epoch": 1.47,
157
+ "learning_rate": 2.8246249353336783e-05,
158
+ "loss": 0.8706,
159
+ "step": 1056
160
+ },
161
+ {
162
+ "epoch": 1.54,
163
+ "learning_rate": 2.7004655975168137e-05,
164
+ "loss": 0.8925,
165
+ "step": 1104
166
+ },
167
+ {
168
+ "epoch": 1.61,
169
+ "learning_rate": 2.5763062596999484e-05,
170
+ "loss": 0.8952,
171
+ "step": 1152
172
+ },
173
+ {
174
+ "epoch": 1.68,
175
+ "learning_rate": 2.4521469218830834e-05,
176
+ "loss": 0.8921,
177
+ "step": 1200
178
+ },
179
+ {
180
+ "epoch": 1.74,
181
+ "learning_rate": 2.3279875840662184e-05,
182
+ "loss": 0.8934,
183
+ "step": 1248
184
+ },
185
+ {
186
+ "epoch": 1.81,
187
+ "learning_rate": 2.2038282462493534e-05,
188
+ "loss": 0.8923,
189
+ "step": 1296
190
+ },
191
+ {
192
+ "epoch": 1.88,
193
+ "learning_rate": 2.0796689084324885e-05,
194
+ "loss": 0.8778,
195
+ "step": 1344
196
+ },
197
+ {
198
+ "epoch": 1.94,
199
+ "learning_rate": 1.9555095706156235e-05,
200
+ "loss": 0.8738,
201
+ "step": 1392
202
+ },
203
+ {
204
+ "epoch": 2.0,
205
+ "eval_accuracy": 0.5627105467737756,
206
+ "eval_f1_macro": 0.49749240436690023,
207
+ "eval_f1_micro": 0.5627105467737756,
208
+ "eval_f1_weighted": 0.5279720746084178,
209
+ "eval_loss": 0.9176467061042786,
210
+ "eval_precision_macro": 0.5386355574899088,
211
+ "eval_precision_micro": 0.5627105467737756,
212
+ "eval_precision_weighted": 0.5462149036191247,
213
+ "eval_recall_macro": 0.517542664344306,
214
+ "eval_recall_micro": 0.5627105467737756,
215
+ "eval_recall_weighted": 0.5627105467737756,
216
+ "eval_runtime": 2502.0236,
217
+ "eval_samples_per_second": 6.169,
218
+ "eval_steps_per_second": 0.048,
219
+ "step": 1432
220
+ }
221
+ ],
222
+ "logging_steps": 48,
223
+ "max_steps": 2148,
224
+ "num_input_tokens_seen": 0,
225
+ "num_train_epochs": 3,
226
+ "save_steps": 500,
227
+ "total_flos": 6027139059895296.0,
228
+ "train_batch_size": 64,
229
+ "trial_name": null,
230
+ "trial_params": null
231
+ }
checkpoint-1432/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b547bcb7141580683e2d41c7888f12ba0209be9515460fdf69d6b8e0dd3e61f2
3
+ size 4728
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ProsusAI/finbert",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": 0.0,
15
+ "1": 1.0,
16
+ "2": 2.0
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "0.0": 0,
22
+ "1.0": 1,
23
+ "2.0": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "bert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 0,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.37.0",
35
+ "type_vocab_size": 2,
36
+ "use_cache": true,
37
+ "vocab_size": 30522
38
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55d86bd31ca8302d6896ed443d1ae1eeee5c30c45b1131eec9004afead2ced7a
3
+ size 437961724
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
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
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
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:b547bcb7141580683e2d41c7888f12ba0209be9515460fdf69d6b8e0dd3e61f2
3
+ size 4728
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "FinBERT_market_based/autotrain-data",
3
+ "model": "ProsusAI/finbert",
4
+ "lr": 5e-05,
5
+ "epochs": 3,
6
+ "max_seq_length": 128,
7
+ "batch_size": 64,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "text_column": "autotrain_text",
18
+ "target_column": "autotrain_label",
19
+ "logging_steps": -1,
20
+ "project_name": "FinBERT_market_based",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": null,
23
+ "save_total_limit": 1,
24
+ "save_strategy": "epoch",
25
+ "push_to_hub": true,
26
+ "repo_id": "baptle/FinBERT_market_based",
27
+ "evaluation_strategy": "epoch",
28
+ "username": "baptle",
29
+ "log": "none"
30
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff