vinh120203
commited on
railwayBangkok-sentiment-analysis-distilrobertta
Browse files- README.md +102 -0
- config.json +39 -0
- events.out.tfevents.1722221576.cf7f239e2f05.1116.0 +3 -0
- events.out.tfevents.1722221779.cf7f239e2f05.1116.1 +3 -0
- events.out.tfevents.1722224051.cf7f239e2f05.1116.2 +3 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
model-index:
|
12 |
+
- name: distilrobertta-fin
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# distilrobertta-fin
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis](https://huggingface.co/mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.4084
|
24 |
+
- Accuracy: 0.8430
|
25 |
+
- F1: 0.8422
|
26 |
+
- Precision: 0.8417
|
27 |
+
- Recall: 0.8434
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-05
|
47 |
+
- train_batch_size: 32
|
48 |
+
- eval_batch_size: 32
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_steps: 100
|
53 |
+
- num_epochs: 3
|
54 |
+
- mixed_precision_training: Native AMP
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
59 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
60 |
+
| 1.0478 | 0.0820 | 50 | 0.9092 | 0.5421 | 0.4316 | 0.6926 | 0.5431 |
|
61 |
+
| 0.8397 | 0.1639 | 100 | 0.6847 | 0.6730 | 0.6038 | 0.7467 | 0.6749 |
|
62 |
+
| 0.6574 | 0.2459 | 150 | 0.5762 | 0.7877 | 0.7764 | 0.7930 | 0.7885 |
|
63 |
+
| 0.5869 | 0.3279 | 200 | 0.4971 | 0.8144 | 0.8091 | 0.8140 | 0.8149 |
|
64 |
+
| 0.5599 | 0.4098 | 250 | 0.5133 | 0.8056 | 0.7990 | 0.8079 | 0.8064 |
|
65 |
+
| 0.5189 | 0.4918 | 300 | 0.4836 | 0.8167 | 0.8105 | 0.8186 | 0.8174 |
|
66 |
+
| 0.4824 | 0.5738 | 350 | 0.4722 | 0.8256 | 0.8190 | 0.8292 | 0.8262 |
|
67 |
+
| 0.4592 | 0.6557 | 400 | 0.5095 | 0.8126 | 0.8018 | 0.8243 | 0.8133 |
|
68 |
+
| 0.4592 | 0.7377 | 450 | 0.4579 | 0.8334 | 0.8291 | 0.8341 | 0.8339 |
|
69 |
+
| 0.4443 | 0.8197 | 500 | 0.5057 | 0.8134 | 0.8120 | 0.8211 | 0.8131 |
|
70 |
+
| 0.4845 | 0.9016 | 550 | 0.4407 | 0.8348 | 0.8320 | 0.8337 | 0.8352 |
|
71 |
+
| 0.4287 | 0.9836 | 600 | 0.4399 | 0.8349 | 0.8317 | 0.8336 | 0.8354 |
|
72 |
+
| 0.4342 | 1.0656 | 650 | 0.4310 | 0.8317 | 0.8323 | 0.8327 | 0.8319 |
|
73 |
+
| 0.4615 | 1.1475 | 700 | 0.4514 | 0.8306 | 0.8297 | 0.8300 | 0.8310 |
|
74 |
+
| 0.402 | 1.2295 | 750 | 0.4553 | 0.8384 | 0.8351 | 0.8407 | 0.8386 |
|
75 |
+
| 0.3893 | 1.3115 | 800 | 0.4312 | 0.836 | 0.8352 | 0.8348 | 0.8364 |
|
76 |
+
| 0.4091 | 1.3934 | 850 | 0.4648 | 0.8261 | 0.8170 | 0.8356 | 0.8268 |
|
77 |
+
| 0.3781 | 1.4754 | 900 | 0.4436 | 0.8316 | 0.8249 | 0.8364 | 0.8322 |
|
78 |
+
| 0.3814 | 1.5574 | 950 | 0.4700 | 0.8206 | 0.8235 | 0.8330 | 0.8208 |
|
79 |
+
| 0.3944 | 1.6393 | 1000 | 0.4139 | 0.8437 | 0.8429 | 0.8437 | 0.8438 |
|
80 |
+
| 0.3961 | 1.7213 | 1050 | 0.4183 | 0.8454 | 0.8434 | 0.8458 | 0.8456 |
|
81 |
+
| 0.3962 | 1.8033 | 1100 | 0.4255 | 0.8386 | 0.8372 | 0.8413 | 0.8385 |
|
82 |
+
| 0.4214 | 1.8852 | 1150 | 0.4022 | 0.8435 | 0.8414 | 0.8423 | 0.8438 |
|
83 |
+
| 0.4058 | 1.9672 | 1200 | 0.4445 | 0.832 | 0.8296 | 0.8365 | 0.8320 |
|
84 |
+
| 0.3507 | 2.0492 | 1250 | 0.4159 | 0.8444 | 0.8430 | 0.8438 | 0.8446 |
|
85 |
+
| 0.3535 | 2.1311 | 1300 | 0.4342 | 0.8405 | 0.8377 | 0.8420 | 0.8407 |
|
86 |
+
| 0.3467 | 2.2131 | 1350 | 0.4208 | 0.8407 | 0.8418 | 0.8448 | 0.8407 |
|
87 |
+
| 0.3394 | 2.2951 | 1400 | 0.4053 | 0.8476 | 0.8466 | 0.8469 | 0.8478 |
|
88 |
+
| 0.3344 | 2.3770 | 1450 | 0.4173 | 0.8393 | 0.8410 | 0.8445 | 0.8393 |
|
89 |
+
| 0.3499 | 2.4590 | 1500 | 0.4050 | 0.848 | 0.8472 | 0.8468 | 0.8483 |
|
90 |
+
| 0.3245 | 2.5410 | 1550 | 0.4056 | 0.8474 | 0.8465 | 0.8470 | 0.8475 |
|
91 |
+
| 0.3524 | 2.6230 | 1600 | 0.4002 | 0.8486 | 0.8475 | 0.8473 | 0.8489 |
|
92 |
+
| 0.3285 | 2.7049 | 1650 | 0.4138 | 0.8446 | 0.8458 | 0.8478 | 0.8447 |
|
93 |
+
| 0.3269 | 2.7869 | 1700 | 0.4017 | 0.8483 | 0.8478 | 0.8479 | 0.8485 |
|
94 |
+
| 0.3318 | 2.8689 | 1750 | 0.4012 | 0.8494 | 0.8483 | 0.8481 | 0.8497 |
|
95 |
+
| 0.3253 | 2.9508 | 1800 | 0.4024 | 0.8476 | 0.8475 | 0.8477 | 0.8477 |
|
96 |
+
|
97 |
+
|
98 |
+
### Framework versions
|
99 |
+
|
100 |
+
- Transformers 4.42.4
|
101 |
+
- Pytorch 2.3.1+cu121
|
102 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "Positive",
|
16 |
+
"1": "Neutral",
|
17 |
+
"2": "Negative"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"Negative": 2,
|
23 |
+
"Neutral": 1,
|
24 |
+
"Positive": 0
|
25 |
+
},
|
26 |
+
"layer_norm_eps": 1e-05,
|
27 |
+
"max_position_embeddings": 514,
|
28 |
+
"model_type": "bert",
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_hidden_layers": 6,
|
31 |
+
"pad_token_id": 1,
|
32 |
+
"position_embedding_type": "absolute",
|
33 |
+
"problem_type": "single_label_classification",
|
34 |
+
"torch_dtype": "float32",
|
35 |
+
"transformers_version": "4.42.4",
|
36 |
+
"type_vocab_size": 1,
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 50265
|
39 |
+
}
|
events.out.tfevents.1722221576.cf7f239e2f05.1116.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5de9594a0dfafe129192eedef8897e600fa3db1cef417de10fd4927415468dad
|
3 |
+
size 5144
|
events.out.tfevents.1722221779.cf7f239e2f05.1116.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e75539114612875579c1ad4da6aa15635342e88b8c74e33ef307b9aa7f4f6835
|
3 |
+
size 30057
|
events.out.tfevents.1722224051.cf7f239e2f05.1116.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e52b1ad05e79297e4735146990a649bca7d2ccd79a0f11d685c8e4105e19165
|
3 |
+
size 1504
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ec1e51d0f81d1fe3a2164ab9d4d5a836df9aa20984999b7ce12cd1b46547867
|
3 |
+
size 328495044
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f432d6f528f322ad29a1e4d8dd782198a70ac4e778f2af0d6ee2b80acf14ce66
|
3 |
+
size 5048
|