Yousefmd commited on
Commit
7fbf33b
1 Parent(s): e90f69c

Model save

Browse files
Files changed (3) hide show
  1. README.md +17 -12
  2. config.json +8 -8
  3. pytorch_model.bin +1 -1
README.md CHANGED
@@ -1,8 +1,9 @@
1
  ---
2
- license: mit
3
- base_model: xlm-roberta-large
4
  tags:
5
  - generated_from_trainer
 
 
6
  model-index:
7
  - name: arabert-sentiment-classification
8
  results: []
@@ -13,16 +14,11 @@ should probably proofread and complete it, then remove this comment. -->
13
 
14
  # arabert-sentiment-classification
15
 
16
- This model is a fine-tuned version of [xlm-roberta-large](https://huggingface.co/xlm-roberta-large) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
- - eval_loss: 0.6336
19
- - eval_macro_f1: 0.6099
20
- - eval_accuracy: 0.7641
21
- - eval_runtime: 92.4531
22
- - eval_samples_per_second: 43.049
23
- - eval_steps_per_second: 2.693
24
- - epoch: 2.0
25
- - step: 995
26
 
27
  ## Model description
28
 
@@ -43,7 +39,7 @@ More information needed
43
  The following hyperparameters were used during training:
44
  - learning_rate: 2e-05
45
  - train_batch_size: 16
46
- - eval_batch_size: 16
47
  - seed: 25
48
  - gradient_accumulation_steps: 2
49
  - total_train_batch_size: 32
@@ -51,6 +47,15 @@ The following hyperparameters were used during training:
51
  - lr_scheduler_type: linear
52
  - num_epochs: 3
53
 
 
 
 
 
 
 
 
 
 
54
  ### Framework versions
55
 
56
  - Transformers 4.34.0
 
1
  ---
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: []
 
14
 
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.6045
20
+ - Macro F1: 0.6642
21
+ - Accuracy: 0.7837
 
 
 
 
 
22
 
23
  ## Model description
24
 
 
39
  The following hyperparameters were used during training:
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
 
47
  - lr_scheduler_type: linear
48
  - num_epochs: 3
49
 
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Macro F1 | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
54
+ | No log | 1.0 | 491 | 0.5546 | 0.6309 | 0.7916 |
55
+ | 0.6287 | 2.0 | 983 | 0.6021 | 0.6662 | 0.7809 |
56
+ | 0.5234 | 3.0 | 1473 | 0.6045 | 0.6642 | 0.7837 |
57
+
58
+
59
  ### Framework versions
60
 
61
  - Transformers 4.34.0
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,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9abcc976dab4e4e919855201c143b25a8799bcd4029022f6c2c51c8cafc26971
3
  size 1477844273
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b42a2a27ea422af51361ea2ab1930ba177641d719e27e5564e499cfb6f35a40f
3
  size 1477844273