railwayBK-sentiment-analysis-robertta
Browse files- README.md +101 -0
- config.json +39 -0
- events.out.tfevents.1721836105.ce5a4ab7cb30.1917.0 +3 -0
- events.out.tfevents.1721840242.ce5a4ab7cb30.1917.1 +3 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: cardiffnlp/twitter-roberta-base-sentiment
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- f1
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
model-index:
|
11 |
+
- name: x-robertta
|
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 |
+
# x-robertta
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.4082
|
23 |
+
- Accuracy: 0.8448
|
24 |
+
- F1: 0.8443
|
25 |
+
- Precision: 0.8439
|
26 |
+
- Recall: 0.8452
|
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: 5e-05
|
46 |
+
- train_batch_size: 32
|
47 |
+
- eval_batch_size: 32
|
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: 100
|
52 |
+
- num_epochs: 3
|
53 |
+
- mixed_precision_training: Native AMP
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
58 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
59 |
+
| 0.9847 | 0.0820 | 50 | 0.9092 | 0.6111 | 0.4914 | 0.4110 | 0.6129 |
|
60 |
+
| 0.8446 | 0.1639 | 100 | 1.2047 | 0.4515 | 0.4025 | 0.5378 | 0.4543 |
|
61 |
+
| 0.794 | 0.2459 | 150 | 0.6341 | 0.7058 | 0.6924 | 0.7562 | 0.7044 |
|
62 |
+
| 0.6176 | 0.3279 | 200 | 0.5220 | 0.8013 | 0.7958 | 0.7994 | 0.8019 |
|
63 |
+
| 0.6387 | 0.4098 | 250 | 0.5844 | 0.7790 | 0.7668 | 0.7832 | 0.7799 |
|
64 |
+
| 0.5845 | 0.4918 | 300 | 0.5524 | 0.7897 | 0.7834 | 0.7895 | 0.7906 |
|
65 |
+
| 0.5467 | 0.5738 | 350 | 0.5331 | 0.8099 | 0.8088 | 0.8089 | 0.8105 |
|
66 |
+
| 0.5181 | 0.6557 | 400 | 0.5041 | 0.8144 | 0.8118 | 0.8174 | 0.8143 |
|
67 |
+
| 0.4963 | 0.7377 | 450 | 0.4705 | 0.8228 | 0.8181 | 0.8219 | 0.8234 |
|
68 |
+
| 0.4871 | 0.8197 | 500 | 0.5085 | 0.8014 | 0.8004 | 0.8133 | 0.8010 |
|
69 |
+
| 0.5346 | 0.9016 | 550 | 0.4812 | 0.8298 | 0.8232 | 0.8338 | 0.8304 |
|
70 |
+
| 0.4424 | 0.9836 | 600 | 0.4802 | 0.8319 | 0.8271 | 0.8334 | 0.8323 |
|
71 |
+
| 0.4791 | 1.0656 | 650 | 0.4963 | 0.8111 | 0.8117 | 0.8149 | 0.8116 |
|
72 |
+
| 0.4785 | 1.1475 | 700 | 0.4522 | 0.8283 | 0.8279 | 0.8287 | 0.8284 |
|
73 |
+
| 0.4196 | 1.2295 | 750 | 0.5025 | 0.8124 | 0.8104 | 0.8183 | 0.8122 |
|
74 |
+
| 0.4284 | 1.3115 | 800 | 0.4800 | 0.8191 | 0.8189 | 0.8209 | 0.8196 |
|
75 |
+
| 0.4312 | 1.3934 | 850 | 0.6048 | 0.7608 | 0.7367 | 0.7859 | 0.7621 |
|
76 |
+
| 0.413 | 1.4754 | 900 | 0.4465 | 0.8412 | 0.8377 | 0.8409 | 0.8416 |
|
77 |
+
| 0.4239 | 1.5574 | 950 | 0.4960 | 0.8172 | 0.8172 | 0.8211 | 0.8178 |
|
78 |
+
| 0.4354 | 1.6393 | 1000 | 0.4348 | 0.8325 | 0.8328 | 0.8360 | 0.8324 |
|
79 |
+
| 0.4172 | 1.7213 | 1050 | 0.4525 | 0.8341 | 0.8298 | 0.8365 | 0.8344 |
|
80 |
+
| 0.4384 | 1.8033 | 1100 | 0.4169 | 0.8442 | 0.8416 | 0.8445 | 0.8444 |
|
81 |
+
| 0.4402 | 1.8852 | 1150 | 0.4124 | 0.8430 | 0.8405 | 0.8415 | 0.8433 |
|
82 |
+
| 0.4232 | 1.9672 | 1200 | 0.4187 | 0.8406 | 0.8388 | 0.8423 | 0.8407 |
|
83 |
+
| 0.3738 | 2.0492 | 1250 | 0.4367 | 0.8422 | 0.8413 | 0.8434 | 0.8422 |
|
84 |
+
| 0.373 | 2.1311 | 1300 | 0.4338 | 0.8415 | 0.8407 | 0.8434 | 0.8415 |
|
85 |
+
| 0.369 | 2.2131 | 1350 | 0.4468 | 0.8385 | 0.8395 | 0.8412 | 0.8387 |
|
86 |
+
| 0.3772 | 2.2951 | 1400 | 0.4141 | 0.8461 | 0.8452 | 0.8455 | 0.8462 |
|
87 |
+
| 0.3602 | 2.3770 | 1450 | 0.4495 | 0.8214 | 0.8235 | 0.8359 | 0.8211 |
|
88 |
+
| 0.3735 | 2.4590 | 1500 | 0.4055 | 0.8456 | 0.8449 | 0.8449 | 0.8458 |
|
89 |
+
| 0.3585 | 2.5410 | 1550 | 0.4115 | 0.8470 | 0.8450 | 0.8463 | 0.8472 |
|
90 |
+
| 0.3795 | 2.6230 | 1600 | 0.4318 | 0.8372 | 0.8364 | 0.8368 | 0.8377 |
|
91 |
+
| 0.356 | 2.7049 | 1650 | 0.4179 | 0.8434 | 0.8440 | 0.8446 | 0.8435 |
|
92 |
+
| 0.3554 | 2.7869 | 1700 | 0.4080 | 0.8476 | 0.8471 | 0.8473 | 0.8477 |
|
93 |
+
| 0.3729 | 2.8689 | 1750 | 0.4044 | 0.8491 | 0.8478 | 0.8479 | 0.8494 |
|
94 |
+
| 0.3578 | 2.9508 | 1800 | 0.4030 | 0.8482 | 0.8473 | 0.8474 | 0.8484 |
|
95 |
+
|
96 |
+
|
97 |
+
### Framework versions
|
98 |
+
|
99 |
+
- Transformers 4.42.4
|
100 |
+
- Pytorch 2.3.1+cu121
|
101 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment",
|
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": 12,
|
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.1721836105.ce5a4ab7cb30.1917.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0e8e09f0193714e1a610fee9d481f2a174ec6fddbd9410cfbfcec0ed71cb3c6
|
3 |
+
size 30077
|
events.out.tfevents.1721840242.ce5a4ab7cb30.1917.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24610b97d79b4d4114bd5269116f32352ea8ce68e0bdf15f1e36321854698859
|
3 |
+
size 1504
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:357c697b6fd8b5cadf77fb2bfea68540d79b5bd7849dd8bc13c5f9a98df52a11
|
3 |
+
size 498615300
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec4088c6acf211c06f1a7f81c3500e95ae930473574b00c88de8efb5e064075c
|
3 |
+
size 5112
|