codealchemist01 commited on
Commit
345d0ac
·
verified ·
1 Parent(s): 53eb8b3

Upload financial-sentiment-improved model

Browse files
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags:
5
+ - financial-sentiment
6
+ - sentiment-analysis
7
+ - finance
8
+ - nlp
9
+ - transformers
10
+ datasets:
11
+ - zeroshot/twitter-financial-news-sentiment
12
+ metrics:
13
+ - accuracy
14
+ - f1
15
+ model-index:
16
+ - name: financial-sentiment-improved
17
+ results:
18
+ - task:
19
+ type: text-classification
20
+ name: Financial Sentiment Analysis
21
+ dataset:
22
+ name: Twitter Financial News Sentiment
23
+ type: zeroshot/twitter-financial-news-sentiment
24
+ metrics:
25
+ - type: accuracy
26
+ value: 0.821
27
+ name: Accuracy
28
+ ---
29
+
30
+ # financial-sentiment-improved
31
+
32
+ ## Model Description
33
+
34
+ Improved financial sentiment analysis model with enhanced performance
35
+
36
+ This model is fine-tuned from `distilbert-base-uncased` for financial sentiment analysis, capable of classifying financial text into three categories:
37
+ - **Bearish** (0): Negative financial sentiment
38
+ - **Neutral** (1): Neutral financial sentiment
39
+ - **Bullish** (2): Positive financial sentiment
40
+
41
+ ## Model Performance
42
+
43
+ - **Accuracy**: 0.821
44
+ - **Dataset**: Twitter Financial News Sentiment
45
+ - **Base Model**: distilbert-base-uncased
46
+
47
+ ## Usage
48
+
49
+ ```python
50
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
51
+ import torch
52
+
53
+ # Load model and tokenizer
54
+ tokenizer = AutoTokenizer.from_pretrained("codealchemist01/financial-sentiment-improved")
55
+ model = AutoModelForSequenceClassification.from_pretrained("codealchemist01/financial-sentiment-improved")
56
+
57
+ # Example usage
58
+ text = "Apple stock is showing strong growth potential"
59
+ inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
60
+
61
+ with torch.no_grad():
62
+ outputs = model(**inputs)
63
+ predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
64
+ predicted_class = torch.argmax(predictions, dim=-1).item()
65
+
66
+ # Labels: 0=Bearish, 1=Neutral, 2=Bullish
67
+ labels = ["Bearish", "Neutral", "Bullish"]
68
+ print(f"Prediction: {labels[predicted_class]}")
69
+ ```
70
+
71
+ ## Training Details
72
+
73
+ - **Training Dataset**: Twitter Financial News Sentiment
74
+ - **Training Framework**: Transformers
75
+ - **Optimization**: AdamW
76
+ - **Hardware**: RTX GPU
77
+
78
+ ## Limitations
79
+
80
+ This model is specifically trained for financial sentiment analysis and may not perform well on general sentiment analysis tasks.
81
+
82
+ ## Citation
83
+
84
+ If you use this model, please cite:
85
+
86
+ ```bibtex
87
+ @misc{financial-sentiment-improved,
88
+ author = {CodeAlchemist01},
89
+ title = {financial-sentiment-improved},
90
+ year = {2024},
91
+ publisher = {Hugging Face},
92
+ url = {https://huggingface.co/codealchemist01/financial-sentiment-improved}
93
+ }
94
+ ```
checkpoint-3435/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Bearish",
14
+ "1": "Neutral",
15
+ "2": "Bullish"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "Bearish": 0,
21
+ "Bullish": 2,
22
+ "Neutral": 1
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "max_position_embeddings": 512,
26
+ "model_type": "bert",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 0,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "transformers_version": "4.57.0",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
checkpoint-3435/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a48c5865d66c0b5654a996d8e3a6977d1553f1e97e4973b34e5d80e25ea0a327
3
+ size 437961724
checkpoint-3435/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57e62ecd4534984beb81579e61c918eeb2646d714908c1bf0272728fb73b6922
3
+ size 876047755
checkpoint-3435/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5469a191031d902dc8de479caffb6492a9565ab51d74eec53f5e3aab4cd34ccb
3
+ size 14645
checkpoint-3435/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bd55a1abc0131ea110babda0977af8e00e1cd77716845211c78a0cf5038a4d2
3
+ size 1383
checkpoint-3435/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:569147eb9f05b3d2f3e8065d6e6f437667bdb84690b928efbaba57dfa38cde5d
3
+ size 1465
checkpoint-3435/trainer_state.json ADDED
@@ -0,0 +1,407 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 2500,
3
+ "best_metric": 0.8745242401633876,
4
+ "best_model_checkpoint": "models\\improved_model\\checkpoint-2500",
5
+ "epoch": 5.0,
6
+ "eval_steps": 500,
7
+ "global_step": 3435,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.14556040756914118,
14
+ "grad_norm": 5.4006147384643555,
15
+ "learning_rate": 9.900000000000002e-06,
16
+ "loss": 1.0779,
17
+ "step": 100
18
+ },
19
+ {
20
+ "epoch": 0.29112081513828236,
21
+ "grad_norm": 7.964382171630859,
22
+ "learning_rate": 1.9900000000000003e-05,
23
+ "loss": 0.3444,
24
+ "step": 200
25
+ },
26
+ {
27
+ "epoch": 0.4366812227074236,
28
+ "grad_norm": 6.473100185394287,
29
+ "learning_rate": 2.9900000000000002e-05,
30
+ "loss": 0.2621,
31
+ "step": 300
32
+ },
33
+ {
34
+ "epoch": 0.5822416302765647,
35
+ "grad_norm": 2.3269290924072266,
36
+ "learning_rate": 3.99e-05,
37
+ "loss": 0.2215,
38
+ "step": 400
39
+ },
40
+ {
41
+ "epoch": 0.727802037845706,
42
+ "grad_norm": 1.0794602632522583,
43
+ "learning_rate": 4.99e-05,
44
+ "loss": 0.1994,
45
+ "step": 500
46
+ },
47
+ {
48
+ "epoch": 0.727802037845706,
49
+ "eval_accuracy": 0.8291404612159329,
50
+ "eval_f1": 0.8347849048667186,
51
+ "eval_f1_bearish": 0.7192982456140351,
52
+ "eval_f1_bullish": 0.8773747841105354,
53
+ "eval_f1_neutral": 0.7843137254901961,
54
+ "eval_loss": 0.16642487049102783,
55
+ "eval_precision": 0.8522584333905088,
56
+ "eval_precision_bearish": 0.6212121212121212,
57
+ "eval_precision_bullish": 0.9407407407407408,
58
+ "eval_precision_neutral": 0.7407407407407407,
59
+ "eval_recall": 0.8291404612159329,
60
+ "eval_recall_bearish": 0.8541666666666666,
61
+ "eval_recall_bullish": 0.8220064724919094,
62
+ "eval_recall_neutral": 0.8333333333333334,
63
+ "eval_runtime": 8.1987,
64
+ "eval_samples_per_second": 116.359,
65
+ "eval_steps_per_second": 3.659,
66
+ "step": 500
67
+ },
68
+ {
69
+ "epoch": 0.8733624454148472,
70
+ "grad_norm": 10.456722259521484,
71
+ "learning_rate": 4.831345826235094e-05,
72
+ "loss": 0.1798,
73
+ "step": 600
74
+ },
75
+ {
76
+ "epoch": 1.0189228529839884,
77
+ "grad_norm": 0.8317745327949524,
78
+ "learning_rate": 4.660988074957411e-05,
79
+ "loss": 0.1477,
80
+ "step": 700
81
+ },
82
+ {
83
+ "epoch": 1.1644832605531295,
84
+ "grad_norm": 13.93519401550293,
85
+ "learning_rate": 4.490630323679728e-05,
86
+ "loss": 0.1027,
87
+ "step": 800
88
+ },
89
+ {
90
+ "epoch": 1.3100436681222707,
91
+ "grad_norm": 5.650792598724365,
92
+ "learning_rate": 4.320272572402044e-05,
93
+ "loss": 0.1093,
94
+ "step": 900
95
+ },
96
+ {
97
+ "epoch": 1.455604075691412,
98
+ "grad_norm": 2.2038004398345947,
99
+ "learning_rate": 4.1499148211243615e-05,
100
+ "loss": 0.1091,
101
+ "step": 1000
102
+ },
103
+ {
104
+ "epoch": 1.455604075691412,
105
+ "eval_accuracy": 0.8542976939203354,
106
+ "eval_f1": 0.854962642061992,
107
+ "eval_f1_bearish": 0.7436823104693141,
108
+ "eval_f1_bullish": 0.9034369885433715,
109
+ "eval_f1_neutral": 0.78239608801956,
110
+ "eval_loss": 0.22784079611301422,
111
+ "eval_precision": 0.85731689649448,
112
+ "eval_precision_bearish": 0.7744360902255639,
113
+ "eval_precision_bullish": 0.9139072847682119,
114
+ "eval_precision_neutral": 0.7373271889400922,
115
+ "eval_recall": 0.8542976939203354,
116
+ "eval_recall_bearish": 0.7152777777777778,
117
+ "eval_recall_bullish": 0.8932038834951457,
118
+ "eval_recall_neutral": 0.8333333333333334,
119
+ "eval_runtime": 8.8257,
120
+ "eval_samples_per_second": 108.094,
121
+ "eval_steps_per_second": 3.399,
122
+ "step": 1000
123
+ },
124
+ {
125
+ "epoch": 1.6011644832605532,
126
+ "grad_norm": 4.665580749511719,
127
+ "learning_rate": 3.9795570698466784e-05,
128
+ "loss": 0.0851,
129
+ "step": 1100
130
+ },
131
+ {
132
+ "epoch": 1.7467248908296944,
133
+ "grad_norm": 0.20554736256599426,
134
+ "learning_rate": 3.809199318568995e-05,
135
+ "loss": 0.0983,
136
+ "step": 1200
137
+ },
138
+ {
139
+ "epoch": 1.8922852983988356,
140
+ "grad_norm": 2.3172614574432373,
141
+ "learning_rate": 3.638841567291312e-05,
142
+ "loss": 0.0908,
143
+ "step": 1300
144
+ },
145
+ {
146
+ "epoch": 2.037845705967977,
147
+ "grad_norm": 0.20416907966136932,
148
+ "learning_rate": 3.468483816013629e-05,
149
+ "loss": 0.072,
150
+ "step": 1400
151
+ },
152
+ {
153
+ "epoch": 2.183406113537118,
154
+ "grad_norm": 0.08527473360300064,
155
+ "learning_rate": 3.298126064735946e-05,
156
+ "loss": 0.0316,
157
+ "step": 1500
158
+ },
159
+ {
160
+ "epoch": 2.183406113537118,
161
+ "eval_accuracy": 0.8616352201257862,
162
+ "eval_f1": 0.8636672911856373,
163
+ "eval_f1_bearish": 0.7516339869281046,
164
+ "eval_f1_bullish": 0.9054726368159204,
165
+ "eval_f1_neutral": 0.8131313131313131,
166
+ "eval_loss": 0.24344488978385925,
167
+ "eval_precision": 0.8675144411363428,
168
+ "eval_precision_bearish": 0.7098765432098766,
169
+ "eval_precision_bullish": 0.9285714285714286,
170
+ "eval_precision_neutral": 0.7892156862745098,
171
+ "eval_recall": 0.8616352201257862,
172
+ "eval_recall_bearish": 0.7986111111111112,
173
+ "eval_recall_bullish": 0.883495145631068,
174
+ "eval_recall_neutral": 0.8385416666666666,
175
+ "eval_runtime": 8.6074,
176
+ "eval_samples_per_second": 110.835,
177
+ "eval_steps_per_second": 3.485,
178
+ "step": 1500
179
+ },
180
+ {
181
+ "epoch": 2.328966521106259,
182
+ "grad_norm": 7.853630065917969,
183
+ "learning_rate": 3.1277683134582626e-05,
184
+ "loss": 0.0363,
185
+ "step": 1600
186
+ },
187
+ {
188
+ "epoch": 2.4745269286754,
189
+ "grad_norm": 0.3771085739135742,
190
+ "learning_rate": 2.957410562180579e-05,
191
+ "loss": 0.0347,
192
+ "step": 1700
193
+ },
194
+ {
195
+ "epoch": 2.6200873362445414,
196
+ "grad_norm": 3.0605719089508057,
197
+ "learning_rate": 2.787052810902896e-05,
198
+ "loss": 0.0319,
199
+ "step": 1800
200
+ },
201
+ {
202
+ "epoch": 2.7656477438136826,
203
+ "grad_norm": 3.2105116844177246,
204
+ "learning_rate": 2.616695059625213e-05,
205
+ "loss": 0.0359,
206
+ "step": 1900
207
+ },
208
+ {
209
+ "epoch": 2.911208151382824,
210
+ "grad_norm": 3.7454285621643066,
211
+ "learning_rate": 2.44633730834753e-05,
212
+ "loss": 0.0361,
213
+ "step": 2000
214
+ },
215
+ {
216
+ "epoch": 2.911208151382824,
217
+ "eval_accuracy": 0.8584905660377359,
218
+ "eval_f1": 0.8593807235316668,
219
+ "eval_f1_bearish": 0.7571428571428571,
220
+ "eval_f1_bullish": 0.9074529074529074,
221
+ "eval_f1_neutral": 0.7813267813267813,
222
+ "eval_loss": 0.2744849622249603,
223
+ "eval_precision": 0.8616426481335732,
224
+ "eval_precision_bearish": 0.7794117647058824,
225
+ "eval_precision_bullish": 0.9187396351575456,
226
+ "eval_precision_neutral": 0.7395348837209302,
227
+ "eval_recall": 0.8584905660377359,
228
+ "eval_recall_bearish": 0.7361111111111112,
229
+ "eval_recall_bullish": 0.8964401294498382,
230
+ "eval_recall_neutral": 0.828125,
231
+ "eval_runtime": 8.1534,
232
+ "eval_samples_per_second": 117.007,
233
+ "eval_steps_per_second": 3.679,
234
+ "step": 2000
235
+ },
236
+ {
237
+ "epoch": 3.056768558951965,
238
+ "grad_norm": 0.04752872511744499,
239
+ "learning_rate": 2.2759795570698465e-05,
240
+ "loss": 0.0169,
241
+ "step": 2100
242
+ },
243
+ {
244
+ "epoch": 3.2023289665211063,
245
+ "grad_norm": 3.445439100265503,
246
+ "learning_rate": 2.1056218057921637e-05,
247
+ "loss": 0.0094,
248
+ "step": 2200
249
+ },
250
+ {
251
+ "epoch": 3.3478893740902476,
252
+ "grad_norm": 1.7491494417190552,
253
+ "learning_rate": 1.9352640545144805e-05,
254
+ "loss": 0.0084,
255
+ "step": 2300
256
+ },
257
+ {
258
+ "epoch": 3.493449781659389,
259
+ "grad_norm": 1.3558599948883057,
260
+ "learning_rate": 1.7649063032367974e-05,
261
+ "loss": 0.0155,
262
+ "step": 2400
263
+ },
264
+ {
265
+ "epoch": 3.6390101892285296,
266
+ "grad_norm": 0.7178720235824585,
267
+ "learning_rate": 1.5945485519591142e-05,
268
+ "loss": 0.0166,
269
+ "step": 2500
270
+ },
271
+ {
272
+ "epoch": 3.6390101892285296,
273
+ "eval_accuracy": 0.8752620545073375,
274
+ "eval_f1": 0.8745242401633876,
275
+ "eval_f1_bearish": 0.7612456747404844,
276
+ "eval_f1_bullish": 0.9131474103585657,
277
+ "eval_f1_neutral": 0.8351648351648352,
278
+ "eval_loss": 0.27798759937286377,
279
+ "eval_precision": 0.8750783502197678,
280
+ "eval_precision_bearish": 0.7586206896551724,
281
+ "eval_precision_bullish": 0.8995290423861853,
282
+ "eval_precision_neutral": 0.8837209302325582,
283
+ "eval_recall": 0.8752620545073375,
284
+ "eval_recall_bearish": 0.7638888888888888,
285
+ "eval_recall_bullish": 0.9271844660194175,
286
+ "eval_recall_neutral": 0.7916666666666666,
287
+ "eval_runtime": 8.5538,
288
+ "eval_samples_per_second": 111.529,
289
+ "eval_steps_per_second": 3.507,
290
+ "step": 2500
291
+ },
292
+ {
293
+ "epoch": 3.7845705967976713,
294
+ "grad_norm": 0.5409824252128601,
295
+ "learning_rate": 1.424190800681431e-05,
296
+ "loss": 0.0072,
297
+ "step": 2600
298
+ },
299
+ {
300
+ "epoch": 3.930131004366812,
301
+ "grad_norm": 0.007624503690749407,
302
+ "learning_rate": 1.253833049403748e-05,
303
+ "loss": 0.0051,
304
+ "step": 2700
305
+ },
306
+ {
307
+ "epoch": 4.075691411935954,
308
+ "grad_norm": 0.03979913145303726,
309
+ "learning_rate": 1.0834752981260648e-05,
310
+ "loss": 0.0106,
311
+ "step": 2800
312
+ },
313
+ {
314
+ "epoch": 4.2212518195050945,
315
+ "grad_norm": 0.025390487164258957,
316
+ "learning_rate": 9.131175468483816e-06,
317
+ "loss": 0.003,
318
+ "step": 2900
319
+ },
320
+ {
321
+ "epoch": 4.366812227074236,
322
+ "grad_norm": 8.90622615814209,
323
+ "learning_rate": 7.427597955706985e-06,
324
+ "loss": 0.0066,
325
+ "step": 3000
326
+ },
327
+ {
328
+ "epoch": 4.366812227074236,
329
+ "eval_accuracy": 0.8742138364779874,
330
+ "eval_f1": 0.8740584051302639,
331
+ "eval_f1_bearish": 0.7659574468085106,
332
+ "eval_f1_bullish": 0.9174757281553398,
333
+ "eval_f1_neutral": 0.8153846153846154,
334
+ "eval_loss": 0.3259490132331848,
335
+ "eval_precision": 0.8740853986957351,
336
+ "eval_precision_bearish": 0.782608695652174,
337
+ "eval_precision_bullish": 0.9174757281553398,
338
+ "eval_precision_neutral": 0.803030303030303,
339
+ "eval_recall": 0.8742138364779874,
340
+ "eval_recall_bearish": 0.75,
341
+ "eval_recall_bullish": 0.9174757281553398,
342
+ "eval_recall_neutral": 0.828125,
343
+ "eval_runtime": 9.0626,
344
+ "eval_samples_per_second": 105.268,
345
+ "eval_steps_per_second": 3.31,
346
+ "step": 3000
347
+ },
348
+ {
349
+ "epoch": 4.512372634643377,
350
+ "grad_norm": 0.0042578354477882385,
351
+ "learning_rate": 5.724020442930154e-06,
352
+ "loss": 0.0021,
353
+ "step": 3100
354
+ },
355
+ {
356
+ "epoch": 4.657933042212518,
357
+ "grad_norm": 0.0550072155892849,
358
+ "learning_rate": 4.0204429301533224e-06,
359
+ "loss": 0.0065,
360
+ "step": 3200
361
+ },
362
+ {
363
+ "epoch": 4.8034934497816595,
364
+ "grad_norm": 0.019497277215123177,
365
+ "learning_rate": 2.3168654173764905e-06,
366
+ "loss": 0.0023,
367
+ "step": 3300
368
+ },
369
+ {
370
+ "epoch": 4.9490538573508,
371
+ "grad_norm": 0.012889917939901352,
372
+ "learning_rate": 6.132879045996593e-07,
373
+ "loss": 0.0031,
374
+ "step": 3400
375
+ }
376
+ ],
377
+ "logging_steps": 100,
378
+ "max_steps": 3435,
379
+ "num_input_tokens_seen": 0,
380
+ "num_train_epochs": 5,
381
+ "save_steps": 500,
382
+ "stateful_callbacks": {
383
+ "EarlyStoppingCallback": {
384
+ "args": {
385
+ "early_stopping_patience": 3,
386
+ "early_stopping_threshold": 0.0
387
+ },
388
+ "attributes": {
389
+ "early_stopping_patience_counter": 1
390
+ }
391
+ },
392
+ "TrainerControl": {
393
+ "args": {
394
+ "should_epoch_stop": false,
395
+ "should_evaluate": false,
396
+ "should_log": false,
397
+ "should_save": true,
398
+ "should_training_stop": true
399
+ },
400
+ "attributes": {}
401
+ }
402
+ },
403
+ "total_flos": 1.444624220035584e+16,
404
+ "train_batch_size": 16,
405
+ "trial_name": null,
406
+ "trial_params": null
407
+ }
checkpoint-3435/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cb2ecd9bb017dca59b8123a0bc341b04a5a2fec62dea1faccf98aad898c9162
3
+ size 5841
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Bearish",
14
+ "1": "Neutral",
15
+ "2": "Bullish"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "Bearish": 0,
21
+ "Bullish": 2,
22
+ "Neutral": 1
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "max_position_embeddings": 512,
26
+ "model_type": "bert",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 0,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "transformers_version": "4.57.0",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ced80768c631b64def495b70ac51d8211c6136626c4846a5ccca1d3423f96fb
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cb2ecd9bb017dca59b8123a0bc341b04a5a2fec62dea1faccf98aad898c9162
3
+ size 5841
vocab.txt ADDED
The diff for this file is too large to render. See raw diff