IParraMartin
commited on
Commit
·
4fca215
1
Parent(s):
7baeedc
IParraMartin/XLM-EusBERTa-sentiment-classification
Browse files- README.md +93 -35
- config.json +8 -9
- model.safetensors +2 -2
- runs/Dec26_03-00-23_3e0893ab1de4/events.out.tfevents.1703559629.3e0893ab1de4.2772.0 +3 -0
- runs/Dec26_03-02-05_3e0893ab1de4/events.out.tfevents.1703559736.3e0893ab1de4.2772.1 +3 -0
- runs/Dec26_03-03-48_3e0893ab1de4/events.out.tfevents.1703559836.3e0893ab1de4.2772.2 +3 -0
- runs/Dec26_03-20-45_3e0893ab1de4/events.out.tfevents.1703560858.3e0893ab1de4.2772.3 +3 -0
- runs/Dec26_03-23-08_3e0893ab1de4/events.out.tfevents.1703560992.3e0893ab1de4.2772.4 +3 -0
- runs/Dec26_03-32-19_3e0893ab1de4/events.out.tfevents.1703561547.3e0893ab1de4.2772.5 +3 -0
- runs/Dec26_03-34-00_3e0893ab1de4/events.out.tfevents.1703561646.3e0893ab1de4.2772.6 +3 -0
- runs/Dec26_03-35-33_3e0893ab1de4/events.out.tfevents.1703561755.3e0893ab1de4.2772.7 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,16 +1,40 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model:
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
datasets:
|
7 |
- basque_glue
|
|
|
|
|
|
|
|
|
|
|
8 |
model-index:
|
9 |
- name: XLM-EusBERTa-sentiment-classification
|
10 |
-
results:
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
---
|
15 |
|
16 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -18,9 +42,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
18 |
|
19 |
# XLM-EusBERTa-sentiment-classification
|
20 |
|
21 |
-
This model is a fine-tuned version of [
|
22 |
It achieves the following results on the evaluation set:
|
23 |
-
- Loss:
|
|
|
|
|
|
|
|
|
24 |
|
25 |
## Model description
|
26 |
|
@@ -40,42 +68,72 @@ More information needed
|
|
40 |
|
41 |
The following hyperparameters were used during training:
|
42 |
- learning_rate: 0.0001
|
43 |
-
- train_batch_size:
|
44 |
-
- eval_batch_size:
|
45 |
- seed: 42
|
46 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
- lr_scheduler_type: linear
|
48 |
-
- num_epochs:
|
49 |
|
50 |
### Training results
|
51 |
|
52 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
-
|
54 |
-
|
|
55 |
-
|
|
56 |
-
|
|
57 |
-
|
|
58 |
-
|
|
59 |
-
|
|
60 |
-
|
|
61 |
-
|
|
62 |
-
|
|
63 |
-
|
|
64 |
-
|
|
65 |
-
|
|
66 |
-
|
|
67 |
-
|
|
68 |
-
|
|
69 |
-
|
|
70 |
-
|
|
71 |
-
|
|
72 |
-
|
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
|
76 |
### Framework versions
|
77 |
|
78 |
- Transformers 4.35.2
|
79 |
- Pytorch 2.1.0+cu121
|
80 |
-
- Datasets 2.
|
81 |
-
- Tokenizers 0.15.0
|
|
|
1 |
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
base_model: ClassCat/roberta-small-basque
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
datasets:
|
7 |
- basque_glue
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- f1
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
model-index:
|
14 |
- name: XLM-EusBERTa-sentiment-classification
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Text Classification
|
18 |
+
type: text-classification
|
19 |
+
dataset:
|
20 |
+
name: basque_glue
|
21 |
+
type: basque_glue
|
22 |
+
config: bec
|
23 |
+
split: validation
|
24 |
+
args: bec
|
25 |
+
metrics:
|
26 |
+
- name: Accuracy
|
27 |
+
type: accuracy
|
28 |
+
value: 0.6290322580645161
|
29 |
+
- name: F1
|
30 |
+
type: f1
|
31 |
+
value: 0.6290834931512662
|
32 |
+
- name: Precision
|
33 |
+
type: precision
|
34 |
+
value: 0.630304630215078
|
35 |
+
- name: Recall
|
36 |
+
type: recall
|
37 |
+
value: 0.6290322580645161
|
38 |
---
|
39 |
|
40 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
42 |
|
43 |
# XLM-EusBERTa-sentiment-classification
|
44 |
|
45 |
+
This model is a fine-tuned version of [ClassCat/roberta-small-basque](https://huggingface.co/ClassCat/roberta-small-basque) on the basque_glue dataset.
|
46 |
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 4.0012
|
48 |
+
- Accuracy: 0.6290
|
49 |
+
- F1: 0.6291
|
50 |
+
- Precision: 0.6303
|
51 |
+
- Recall: 0.6290
|
52 |
|
53 |
## Model description
|
54 |
|
|
|
68 |
|
69 |
The following hyperparameters were used during training:
|
70 |
- learning_rate: 0.0001
|
71 |
+
- train_batch_size: 16
|
72 |
+
- eval_batch_size: 16
|
73 |
- seed: 42
|
74 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
75 |
- lr_scheduler_type: linear
|
76 |
+
- num_epochs: 50
|
77 |
|
78 |
### Training results
|
79 |
|
80 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
81 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
82 |
+
| No log | 1.0 | 380 | 0.7366 | 0.6736 | 0.6589 | 0.6711 | 0.6736 |
|
83 |
+
| 0.7679 | 2.0 | 760 | 0.7654 | 0.6767 | 0.6692 | 0.6726 | 0.6767 |
|
84 |
+
| 0.4846 | 3.0 | 1140 | 0.9844 | 0.6621 | 0.6599 | 0.6681 | 0.6621 |
|
85 |
+
| 0.2952 | 4.0 | 1520 | 1.1162 | 0.6375 | 0.6371 | 0.6473 | 0.6375 |
|
86 |
+
| 0.2952 | 5.0 | 1900 | 1.4234 | 0.6329 | 0.6343 | 0.6425 | 0.6329 |
|
87 |
+
| 0.192 | 6.0 | 2280 | 1.8570 | 0.6413 | 0.6362 | 0.6424 | 0.6413 |
|
88 |
+
| 0.159 | 7.0 | 2660 | 2.1968 | 0.6152 | 0.6086 | 0.6152 | 0.6152 |
|
89 |
+
| 0.1265 | 8.0 | 3040 | 2.1853 | 0.6283 | 0.6267 | 0.6267 | 0.6283 |
|
90 |
+
| 0.1265 | 9.0 | 3420 | 2.1953 | 0.6467 | 0.6441 | 0.6435 | 0.6467 |
|
91 |
+
| 0.0807 | 10.0 | 3800 | 2.2806 | 0.6367 | 0.6381 | 0.6480 | 0.6367 |
|
92 |
+
| 0.0688 | 11.0 | 4180 | 2.7982 | 0.6175 | 0.6167 | 0.6356 | 0.6175 |
|
93 |
+
| 0.0675 | 12.0 | 4560 | 2.5182 | 0.6605 | 0.6587 | 0.6584 | 0.6605 |
|
94 |
+
| 0.0675 | 13.0 | 4940 | 2.6544 | 0.6413 | 0.6315 | 0.6391 | 0.6413 |
|
95 |
+
| 0.0451 | 14.0 | 5320 | 2.5889 | 0.6459 | 0.6427 | 0.6424 | 0.6459 |
|
96 |
+
| 0.0432 | 15.0 | 5700 | 2.8100 | 0.6290 | 0.6299 | 0.6359 | 0.6290 |
|
97 |
+
| 0.0297 | 16.0 | 6080 | 2.9983 | 0.6275 | 0.6262 | 0.6263 | 0.6275 |
|
98 |
+
| 0.0297 | 17.0 | 6460 | 2.7803 | 0.6313 | 0.6289 | 0.6311 | 0.6313 |
|
99 |
+
| 0.0369 | 18.0 | 6840 | 2.9602 | 0.6283 | 0.6287 | 0.6353 | 0.6283 |
|
100 |
+
| 0.0289 | 19.0 | 7220 | 2.9911 | 0.6298 | 0.6309 | 0.6356 | 0.6298 |
|
101 |
+
| 0.0251 | 20.0 | 7600 | 2.8634 | 0.6344 | 0.6350 | 0.6364 | 0.6344 |
|
102 |
+
| 0.0251 | 21.0 | 7980 | 2.7171 | 0.6406 | 0.6378 | 0.6375 | 0.6406 |
|
103 |
+
| 0.0332 | 22.0 | 8360 | 3.0386 | 0.6275 | 0.6215 | 0.6245 | 0.6275 |
|
104 |
+
| 0.0212 | 23.0 | 8740 | 2.9876 | 0.6313 | 0.6319 | 0.6344 | 0.6313 |
|
105 |
+
| 0.0218 | 24.0 | 9120 | 2.9776 | 0.6283 | 0.6267 | 0.6348 | 0.6283 |
|
106 |
+
| 0.0189 | 25.0 | 9500 | 2.9596 | 0.6329 | 0.6340 | 0.6381 | 0.6329 |
|
107 |
+
| 0.0189 | 26.0 | 9880 | 3.0420 | 0.6329 | 0.6324 | 0.6380 | 0.6329 |
|
108 |
+
| 0.0172 | 27.0 | 10260 | 3.3335 | 0.6336 | 0.6348 | 0.6369 | 0.6336 |
|
109 |
+
| 0.0054 | 28.0 | 10640 | 3.2843 | 0.6429 | 0.6442 | 0.6466 | 0.6429 |
|
110 |
+
| 0.0065 | 29.0 | 11020 | 3.4868 | 0.6275 | 0.6291 | 0.6399 | 0.6275 |
|
111 |
+
| 0.0065 | 30.0 | 11400 | 3.8241 | 0.6175 | 0.6174 | 0.6209 | 0.6175 |
|
112 |
+
| 0.0108 | 31.0 | 11780 | 3.5833 | 0.6260 | 0.6275 | 0.6317 | 0.6260 |
|
113 |
+
| 0.0127 | 32.0 | 12160 | 3.5452 | 0.6183 | 0.6203 | 0.6283 | 0.6183 |
|
114 |
+
| 0.0092 | 33.0 | 12540 | 3.8349 | 0.6167 | 0.6167 | 0.6389 | 0.6167 |
|
115 |
+
| 0.0092 | 34.0 | 12920 | 3.6464 | 0.6244 | 0.6260 | 0.6313 | 0.6244 |
|
116 |
+
| 0.0069 | 35.0 | 13300 | 3.7538 | 0.6352 | 0.6352 | 0.6359 | 0.6352 |
|
117 |
+
| 0.0028 | 36.0 | 13680 | 3.8862 | 0.6221 | 0.6243 | 0.6350 | 0.6221 |
|
118 |
+
| 0.0001 | 37.0 | 14060 | 3.9846 | 0.6229 | 0.6206 | 0.6252 | 0.6229 |
|
119 |
+
| 0.0001 | 38.0 | 14440 | 3.7743 | 0.6275 | 0.6287 | 0.6309 | 0.6275 |
|
120 |
+
| 0.0057 | 39.0 | 14820 | 3.9002 | 0.6290 | 0.6300 | 0.6319 | 0.6290 |
|
121 |
+
| 0.0004 | 40.0 | 15200 | 3.9651 | 0.6306 | 0.6315 | 0.6333 | 0.6306 |
|
122 |
+
| 0.0032 | 41.0 | 15580 | 4.0279 | 0.6206 | 0.6213 | 0.6365 | 0.6206 |
|
123 |
+
| 0.0032 | 42.0 | 15960 | 3.8244 | 0.6344 | 0.6342 | 0.6344 | 0.6344 |
|
124 |
+
| 0.0033 | 43.0 | 16340 | 3.9036 | 0.6198 | 0.6205 | 0.6237 | 0.6198 |
|
125 |
+
| 0.003 | 44.0 | 16720 | 4.0028 | 0.6198 | 0.6214 | 0.6263 | 0.6198 |
|
126 |
+
| 0.0005 | 45.0 | 17100 | 3.9621 | 0.6306 | 0.6315 | 0.6361 | 0.6306 |
|
127 |
+
| 0.0005 | 46.0 | 17480 | 3.9682 | 0.6306 | 0.6297 | 0.6298 | 0.6306 |
|
128 |
+
| 0.0003 | 47.0 | 17860 | 4.0103 | 0.6321 | 0.6310 | 0.6305 | 0.6321 |
|
129 |
+
| 0.0003 | 48.0 | 18240 | 3.9968 | 0.6321 | 0.6316 | 0.6317 | 0.6321 |
|
130 |
+
| 0.003 | 49.0 | 18620 | 3.9835 | 0.6298 | 0.6297 | 0.6304 | 0.6298 |
|
131 |
+
| 0.0005 | 50.0 | 19000 | 4.0012 | 0.6290 | 0.6291 | 0.6303 | 0.6290 |
|
132 |
|
133 |
|
134 |
### Framework versions
|
135 |
|
136 |
- Transformers 4.35.2
|
137 |
- Pytorch 2.1.0+cu121
|
138 |
+
- Datasets 2.16.0
|
139 |
+
- Tokenizers 0.15.0
|
config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"bos_token_id": 0,
|
@@ -9,14 +9,14 @@
|
|
9 |
"eos_token_id": 2,
|
10 |
"hidden_act": "gelu",
|
11 |
"hidden_dropout_prob": 0.1,
|
12 |
-
"hidden_size":
|
13 |
"id2label": {
|
14 |
"0": "LABEL_0",
|
15 |
"1": "LABEL_1",
|
16 |
"2": "LABEL_2"
|
17 |
},
|
18 |
"initializer_range": 0.02,
|
19 |
-
"intermediate_size":
|
20 |
"label2id": {
|
21 |
"LABEL_0": 0,
|
22 |
"LABEL_1": 1,
|
@@ -24,10 +24,9 @@
|
|
24 |
},
|
25 |
"layer_norm_eps": 1e-05,
|
26 |
"max_position_embeddings": 514,
|
27 |
-
"model_type": "
|
28 |
-
"num_attention_heads":
|
29 |
-
"num_hidden_layers":
|
30 |
-
"output_past": true,
|
31 |
"pad_token_id": 1,
|
32 |
"position_embedding_type": "absolute",
|
33 |
"problem_type": "single_label_classification",
|
@@ -35,5 +34,5 @@
|
|
35 |
"transformers_version": "4.35.2",
|
36 |
"type_vocab_size": 1,
|
37 |
"use_cache": true,
|
38 |
-
"vocab_size":
|
39 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "ClassCat/roberta-small-basque",
|
3 |
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"bos_token_id": 0,
|
|
|
9 |
"eos_token_id": 2,
|
10 |
"hidden_act": "gelu",
|
11 |
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 512,
|
13 |
"id2label": {
|
14 |
"0": "LABEL_0",
|
15 |
"1": "LABEL_1",
|
16 |
"2": "LABEL_2"
|
17 |
},
|
18 |
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 2048,
|
20 |
"label2id": {
|
21 |
"LABEL_0": 0,
|
22 |
"LABEL_1": 1,
|
|
|
24 |
},
|
25 |
"layer_norm_eps": 1e-05,
|
26 |
"max_position_embeddings": 514,
|
27 |
+
"model_type": "roberta",
|
28 |
+
"num_attention_heads": 8,
|
29 |
+
"num_hidden_layers": 8,
|
|
|
30 |
"pad_token_id": 1,
|
31 |
"position_embedding_type": "absolute",
|
32 |
"problem_type": "single_label_classification",
|
|
|
34 |
"transformers_version": "4.35.2",
|
35 |
"type_vocab_size": 1,
|
36 |
"use_cache": true,
|
37 |
+
"vocab_size": 50000
|
38 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8bf04adc7af2585fd2285c4a6ee7a69c4168ee3c0030f254e1b4c173caae923
|
3 |
+
size 205408268
|
runs/Dec26_03-00-23_3e0893ab1de4/events.out.tfevents.1703559629.3e0893ab1de4.2772.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:758fdefc8ccee5f43571d1e8fa9ae8faf1bfcd8c7c1ae02c91f1a24a13f20803
|
3 |
+
size 5096
|
runs/Dec26_03-02-05_3e0893ab1de4/events.out.tfevents.1703559736.3e0893ab1de4.2772.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:929eda14203036246bbdb7e365028b96d9a46a5ac112d7dfd2dc0ced3abae407
|
3 |
+
size 7457
|
runs/Dec26_03-03-48_3e0893ab1de4/events.out.tfevents.1703559836.3e0893ab1de4.2772.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf9a0873169e6e9986f7a60c7ceb86a6df8a31b018726dec8c610038305e6f63
|
3 |
+
size 16619
|
runs/Dec26_03-20-45_3e0893ab1de4/events.out.tfevents.1703560858.3e0893ab1de4.2772.3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81e511da4295e06e611f6eeaebf1d1a20c1757d4f956f37f326ab93e2d812c71
|
3 |
+
size 9237
|
runs/Dec26_03-23-08_3e0893ab1de4/events.out.tfevents.1703560992.3e0893ab1de4.2772.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6758f1bfe425da5976a54f443cde20c63f052ad954f2c0af891b620bbbf751e6
|
3 |
+
size 13006
|
runs/Dec26_03-32-19_3e0893ab1de4/events.out.tfevents.1703561547.3e0893ab1de4.2772.5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d590d1581f42237c44f4892c219dd0b55dbb5c255d90a36e8f3e2ae607a191e
|
3 |
+
size 7145
|
runs/Dec26_03-34-00_3e0893ab1de4/events.out.tfevents.1703561646.3e0893ab1de4.2772.6
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13eeb3220de92cd790f2c6eff41be5eee8e1888b04d02783a6ed858faccdba85
|
3 |
+
size 6201
|
runs/Dec26_03-35-33_3e0893ab1de4/events.out.tfevents.1703561755.3e0893ab1de4.2772.7
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c683a79dcfa4348331f48745f67ce52728eb5313fd8313bcca593e9504776c0b
|
3 |
+
size 34478
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4600
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f65dc1c0c1c7e4bc9ca0a5ebc60a8a44ed785550a938c51e1d9bdff72a51c637
|
3 |
size 4600
|