avinasht commited on
Commit
5ca94d7
1 Parent(s): 78037fe

Acc0.9001248439450686, F10.8994770073289435 , Augmented with Synonym-wordnet.csv, finetuned on ProsusAI/finbert

Browse files
Files changed (4) hide show
  1. README.md +76 -0
  2. config.json +37 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ProsusAI/finbert
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ - f1
8
+ - precision
9
+ - recall
10
+ model-index:
11
+ - name: finbert_Synonym-wordnet
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
+ # finbert_Synonym-wordnet
19
+
20
+ This model is a fine-tuned version of [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.2734
23
+ - Accuracy: 0.9236
24
+ - F1: 0.9232
25
+ - Precision: 0.9236
26
+ - Recall: 0.9236
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.0001
46
+ - train_batch_size: 64
47
+ - eval_batch_size: 64
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - lr_scheduler_warmup_steps: 1000
52
+ - num_epochs: 25
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
58
+ | 0.7941 | 1.0 | 91 | 0.7038 | 0.7051 | 0.6964 | 0.7046 | 0.7051 |
59
+ | 0.3785 | 2.0 | 182 | 0.2841 | 0.8939 | 0.8940 | 0.8942 | 0.8939 |
60
+ | 0.213 | 3.0 | 273 | 0.2432 | 0.9080 | 0.9082 | 0.9106 | 0.9080 |
61
+ | 0.1268 | 4.0 | 364 | 0.3080 | 0.8924 | 0.8927 | 0.8956 | 0.8924 |
62
+ | 0.0851 | 5.0 | 455 | 0.2941 | 0.9173 | 0.9166 | 0.9183 | 0.9173 |
63
+ | 0.0797 | 6.0 | 546 | 0.2734 | 0.9236 | 0.9232 | 0.9236 | 0.9236 |
64
+ | 0.0651 | 7.0 | 637 | 0.3518 | 0.8970 | 0.8975 | 0.9029 | 0.8970 |
65
+ | 0.0779 | 8.0 | 728 | 0.4189 | 0.8939 | 0.8942 | 0.9016 | 0.8939 |
66
+ | 0.0923 | 9.0 | 819 | 0.3289 | 0.9126 | 0.9131 | 0.9152 | 0.9126 |
67
+ | 0.087 | 10.0 | 910 | 0.3797 | 0.9048 | 0.9047 | 0.9075 | 0.9048 |
68
+ | 0.0527 | 11.0 | 1001 | 0.3492 | 0.9048 | 0.9050 | 0.9058 | 0.9048 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.37.0
74
+ - Pytorch 2.1.2
75
+ - Datasets 2.1.0
76
+ - Tokenizers 0.15.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": "positive",
14
+ "1": "negative",
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.37.0",
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:f352b4659459133201d5adb3c5558a4aa235fc02c19168fb8dc58f070e0b6b6b
3
+ size 437961724
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1272e8a99e84b180be11e47abe98c7a5398224c13a4332223e7269f143861d99
3
+ size 4664