End of training
Browse files- README.md +73 -0
- config.json +2 -9
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: aubmindlab/bert-base-arabertv02-twitter
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: Improved-Arabert-twitter-sentiment-No-dropout-Twitter
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# Improved-Arabert-twitter-sentiment-No-dropout-Twitter
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [aubmindlab/bert-base-arabertv02-twitter](https://huggingface.co/aubmindlab/bert-base-arabertv02-twitter) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.6342
|
20 |
+
- Accuracy: 0.89
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 1e-05
|
40 |
+
- train_batch_size: 32
|
41 |
+
- eval_batch_size: 32
|
42 |
+
- seed: 42
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- num_epochs: 15
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
51 |
+
| 0.5264 | 0.55 | 50 | 0.5252 | 0.71 |
|
52 |
+
| 0.3041 | 1.1 | 100 | 0.4085 | 0.81 |
|
53 |
+
| 0.2205 | 1.65 | 150 | 0.3303 | 0.88 |
|
54 |
+
| 0.1476 | 2.2 | 200 | 0.3890 | 0.87 |
|
55 |
+
| 0.1219 | 2.75 | 250 | 0.3775 | 0.87 |
|
56 |
+
| 0.0972 | 3.3 | 300 | 0.3930 | 0.88 |
|
57 |
+
| 0.0917 | 3.85 | 350 | 0.4728 | 0.86 |
|
58 |
+
| 0.0596 | 4.4 | 400 | 0.4406 | 0.89 |
|
59 |
+
| 0.0556 | 4.95 | 450 | 0.4949 | 0.89 |
|
60 |
+
| 0.0375 | 5.49 | 500 | 0.4935 | 0.9 |
|
61 |
+
| 0.0269 | 6.04 | 550 | 0.5977 | 0.88 |
|
62 |
+
| 0.0235 | 6.59 | 600 | 0.5543 | 0.89 |
|
63 |
+
| 0.0191 | 7.14 | 650 | 0.5941 | 0.88 |
|
64 |
+
| 0.0109 | 7.69 | 700 | 0.6562 | 0.89 |
|
65 |
+
| 0.0198 | 8.24 | 750 | 0.6342 | 0.89 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.34.1
|
71 |
+
- Pytorch 2.1.0+cu118
|
72 |
+
- Datasets 2.14.7
|
73 |
+
- Tokenizers 0.14.1
|
config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"_name_or_path": "aubmindlab/bert-base-arabertv02-twitter",
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"classifier_dropout": null,
|
@@ -9,16 +9,8 @@
|
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
12 |
-
"id2label": {
|
13 |
-
"0": "Negative",
|
14 |
-
"1": "Positive"
|
15 |
-
},
|
16 |
"initializer_range": 0.02,
|
17 |
"intermediate_size": 3072,
|
18 |
-
"label2id": {
|
19 |
-
"Negative": 0,
|
20 |
-
"Positive": 1
|
21 |
-
},
|
22 |
"layer_norm_eps": 1e-12,
|
23 |
"max_position_embeddings": 512,
|
24 |
"model_type": "bert",
|
@@ -26,6 +18,7 @@
|
|
26 |
"num_hidden_layers": 12,
|
27 |
"pad_token_id": 0,
|
28 |
"position_embedding_type": "absolute",
|
|
|
29 |
"torch_dtype": "float32",
|
30 |
"transformers_version": "4.34.1",
|
31 |
"type_vocab_size": 2,
|
|
|
1 |
{
|
2 |
"_name_or_path": "aubmindlab/bert-base-arabertv02-twitter",
|
3 |
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"classifier_dropout": null,
|
|
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
12 |
"initializer_range": 0.02,
|
13 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
14 |
"layer_norm_eps": 1e-12,
|
15 |
"max_position_embeddings": 512,
|
16 |
"model_type": "bert",
|
|
|
18 |
"num_hidden_layers": 12,
|
19 |
"pad_token_id": 0,
|
20 |
"position_embedding_type": "absolute",
|
21 |
+
"problem_type": "single_label_classification",
|
22 |
"torch_dtype": "float32",
|
23 |
"transformers_version": "4.34.1",
|
24 |
"type_vocab_size": 2,
|