santis2 commited on
Commit
0e8aede
1 Parent(s): 65e4225

End of training

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - financial_phrasebank
8
+ metrics:
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: phrasebank-sentiment-analysis
13
+ results:
14
+ - task:
15
+ name: Text Classification
16
+ type: text-classification
17
+ dataset:
18
+ name: financial_phrasebank
19
+ type: financial_phrasebank
20
+ config: sentences_50agree
21
+ split: train
22
+ args: sentences_50agree
23
+ metrics:
24
+ - name: F1
25
+ type: f1
26
+ value:
27
+ f1: 0.8172545518133599
28
+ - name: Accuracy
29
+ type: accuracy
30
+ value:
31
+ accuracy: 0.8328748280605227
32
+ ---
33
+
34
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
35
+ should probably proofread and complete it, then remove this comment. -->
36
+
37
+ # phrasebank-sentiment-analysis
38
+
39
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the financial_phrasebank dataset.
40
+ It achieves the following results on the evaluation set:
41
+ - Loss: 0.7236
42
+ - F1: {'f1': 0.8172545518133599}
43
+ - Accuracy: {'accuracy': 0.8328748280605227}
44
+
45
+ ## Model description
46
+
47
+ More information needed
48
+
49
+ ## Intended uses & limitations
50
+
51
+ More information needed
52
+
53
+ ## Training and evaluation data
54
+
55
+ More information needed
56
+
57
+ ## Training procedure
58
+
59
+ ### Training hyperparameters
60
+
61
+ The following hyperparameters were used during training:
62
+ - learning_rate: 5e-05
63
+ - train_batch_size: 32
64
+ - eval_batch_size: 8
65
+ - seed: 42
66
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
67
+ - lr_scheduler_type: linear
68
+ - num_epochs: 4
69
+
70
+ ### Training results
71
+
72
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Accuracy |
73
+ |:-------------:|:-----:|:----:|:---------------:|:--------------------------:|:--------------------------------:|
74
+ | 0.3941 | 0.94 | 100 | 0.4098 | {'f1': 0.7962755487135231} | {'accuracy': 0.828060522696011} |
75
+ | 0.1921 | 1.89 | 200 | 0.5360 | {'f1': 0.8094154455783058} | {'accuracy': 0.8321870701513068} |
76
+ | 0.0873 | 2.83 | 300 | 0.7086 | {'f1': 0.8146311198809535} | {'accuracy': 0.8301237964236589} |
77
+ | 0.0404 | 3.77 | 400 | 0.7236 | {'f1': 0.8172545518133599} | {'accuracy': 0.8328748280605227} |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.33.2
83
+ - Pytorch 2.0.1+cu118
84
+ - Datasets 2.14.5
85
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
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": "negative",
14
+ "1": "neutral",
15
+ "2": "positive"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "negative": 0,
21
+ "neutral": 1,
22
+ "positive": 2
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.33.2",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 30522
37
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15ecec0f33da7bf6056eb60ec417d0eea5e4dd5b52111f32427dac4f18c1f152
3
+ size 438006577
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,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cadc3fe9492f1ea94b5508178f9b704933de51f77d4cfe22ba46a9f88c1ff06
3
+ size 4027
vocab.txt ADDED
The diff for this file is too large to render. See raw diff