karoldobiczek commited on
Commit
8dc745f
·
verified ·
1 Parent(s): d69a820

End of training

Browse files
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: prosusai/finbert
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: finbert-fomc
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
+ # finbert-fomc
16
+
17
+ This model is a fine-tuned version of [prosusai/finbert](https://huggingface.co/prosusai/finbert) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.8286
20
+ - Accuracy: 0.6154
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 16
41
+ - eval_batch_size: 16
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - lr_scheduler_warmup_steps: 500
46
+ - num_epochs: 5
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
52
+ | No log | 0.0083 | 1 | 1.7351 | 0.4049 |
53
+ | 1.7127 | 0.2149 | 26 | 1.4334 | 0.4777 |
54
+ | 1.3539 | 0.4215 | 51 | 1.0763 | 0.5547 |
55
+ | 1.0501 | 0.6281 | 76 | 0.9471 | 0.5547 |
56
+ | 0.9614 | 0.8347 | 101 | 0.9471 | 0.5628 |
57
+ | 0.988 | 1.0 | 121 | 0.9030 | 0.5709 |
58
+ | 0.988 | 1.0413 | 126 | 0.8999 | 0.5547 |
59
+ | 0.8862 | 1.2479 | 151 | 0.9215 | 0.5628 |
60
+ | 0.8506 | 1.4545 | 176 | 0.8740 | 0.5506 |
61
+ | 0.8825 | 1.6612 | 201 | 0.8604 | 0.6235 |
62
+ | 0.8366 | 1.8678 | 226 | 0.8063 | 0.6194 |
63
+ | 0.7666 | 2.0 | 242 | 0.8286 | 0.6154 |
64
+ | 0.7039 | 2.0744 | 251 | 0.8652 | 0.6073 |
65
+ | 0.5698 | 2.2810 | 276 | 1.0371 | 0.5911 |
66
+ | 0.7683 | 2.4876 | 301 | 0.9662 | 0.5951 |
67
+ | 0.528 | 2.6942 | 326 | 0.8984 | 0.6275 |
68
+ | 0.6282 | 2.9008 | 351 | 0.9095 | 0.6154 |
69
+ | 0.5638 | 3.0 | 363 | 0.8730 | 0.6761 |
70
+ | 0.5208 | 3.1074 | 376 | 0.9042 | 0.6599 |
71
+ | 0.4426 | 3.3140 | 401 | 1.0531 | 0.6235 |
72
+ | 0.5795 | 3.5207 | 426 | 1.0305 | 0.6559 |
73
+ | 0.363 | 3.7273 | 451 | 0.9831 | 0.6559 |
74
+ | 0.4584 | 3.9339 | 476 | 0.9950 | 0.6437 |
75
+ | 0.3794 | 4.0 | 484 | 1.0740 | 0.6154 |
76
+ | 0.2579 | 4.1405 | 501 | 1.1667 | 0.6356 |
77
+ | 0.1803 | 4.3471 | 526 | 1.0366 | 0.6883 |
78
+ | 0.1824 | 4.5537 | 551 | 1.2625 | 0.6599 |
79
+ | 0.2647 | 4.7603 | 576 | 1.2183 | 0.6761 |
80
+ | 0.205 | 4.9669 | 601 | 1.1944 | 0.6721 |
81
+ | 0.205 | 5.0 | 605 | 1.1959 | 0.6721 |
82
+
83
+
84
+ ### Framework versions
85
+
86
+ - Transformers 4.40.2
87
+ - Pytorch 1.12.0
88
+ - Datasets 2.19.1
89
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "prosusai/finbert",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "dovish",
14
+ "1": "hawkish",
15
+ "2": "neutral"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "negative": 1,
21
+ "neutral": 2,
22
+ "positive": 0
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
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.40.2",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 30522
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7abc3ba4e83e398e093473f14fdfac99ca330d4b6175bb10aab03d6ad261b65e
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:d000bfb8c601d8f8db1fc5cedc4f5f945caec9f7a2fdeaf6e52aa56b4082e425
3
+ size 4527
vocab.txt ADDED
The diff for this file is too large to render. See raw diff