Yousefmd commited on
Commit
9a6da49
1 Parent(s): 7c1891a

Model save

Browse files
Files changed (2) hide show
  1. README.md +15 -1
  2. config.json +8 -8
README.md CHANGED
@@ -2,6 +2,8 @@
2
  base_model: aubmindlab/bert-large-arabertv02-twitter
3
  tags:
4
  - generated_from_trainer
 
 
5
  model-index:
6
  - name: arabert-sentiment-classification
7
  results: []
@@ -13,6 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
13
  # arabert-sentiment-classification
14
 
15
  This model is a fine-tuned version of [aubmindlab/bert-large-arabertv02-twitter](https://huggingface.co/aubmindlab/bert-large-arabertv02-twitter) on an unknown dataset.
 
 
 
 
16
 
17
  ## Model description
18
 
@@ -34,13 +40,21 @@ The following hyperparameters were used during training:
34
  - learning_rate: 2e-05
35
  - train_batch_size: 16
36
  - eval_batch_size: 128
37
- - seed: 42
38
  - gradient_accumulation_steps: 2
39
  - total_train_batch_size: 32
40
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
  - lr_scheduler_type: linear
42
  - num_epochs: 2
43
 
 
 
 
 
 
 
 
 
44
  ### Framework versions
45
 
46
  - Transformers 4.33.3
 
2
  base_model: aubmindlab/bert-large-arabertv02-twitter
3
  tags:
4
  - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
  model-index:
8
  - name: arabert-sentiment-classification
9
  results: []
 
15
  # arabert-sentiment-classification
16
 
17
  This model is a fine-tuned version of [aubmindlab/bert-large-arabertv02-twitter](https://huggingface.co/aubmindlab/bert-large-arabertv02-twitter) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.5525
20
+ - Macro F1: 0.6558
21
+ - Accuracy: 0.7957
22
 
23
  ## Model description
24
 
 
40
  - learning_rate: 2e-05
41
  - train_batch_size: 16
42
  - eval_batch_size: 128
43
+ - seed: 25
44
  - gradient_accumulation_steps: 2
45
  - total_train_batch_size: 32
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
  - num_epochs: 2
49
 
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Macro F1 | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
54
+ | No log | 1.0 | 497 | 0.5462 | 0.6431 | 0.7925 |
55
+ | 0.6202 | 2.0 | 994 | 0.5525 | 0.6558 | 0.7957 |
56
+
57
+
58
  ### Framework versions
59
 
60
  - Transformers 4.33.3
config.json CHANGED
@@ -10,18 +10,18 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 1024,
12
  "id2label": {
13
- "0": "LABEL_0",
14
- "1": "LABEL_1",
15
- "2": "LABEL_2",
16
- "3": "LABEL_3"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 4096,
20
  "label2id": {
21
- "LABEL_0": 0,
22
- "LABEL_1": 1,
23
- "LABEL_2": 2,
24
- "LABEL_3": 3
25
  },
26
  "layer_norm_eps": 1e-12,
27
  "max_position_embeddings": 512,
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 1024,
12
  "id2label": {
13
+ "0": "Positive",
14
+ "1": "Negative",
15
+ "2": "Neutral",
16
+ "3": "Mixed"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 4096,
20
  "label2id": {
21
+ "Mixed": 3,
22
+ "Negative": 1,
23
+ "Neutral": 2,
24
+ "Positive": 0
25
  },
26
  "layer_norm_eps": 1e-12,
27
  "max_position_embeddings": 512,