Yousefmd commited on
Commit
b519c7a
1 Parent(s): c11b8af

Model save

Browse files
Files changed (3) hide show
  1. README.md +14 -19
  2. config.json +8 -8
  3. pytorch_model.bin +1 -1
README.md CHANGED
@@ -1,9 +1,8 @@
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,11 +13,16 @@ should probably proofread and complete it, then remove this comment. -->
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.5604
20
- - Macro F1: 0.6567
21
- - Accuracy: 0.7945
 
 
 
 
 
22
 
23
  ## Model description
24
 
@@ -38,24 +42,15 @@ More information needed
38
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 2e-05
41
- - train_batch_size: 32
42
- - eval_batch_size: 32
43
  - seed: 25
44
  - gradient_accumulation_steps: 2
45
- - total_train_batch_size: 64
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
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 | 249 | 0.5455 | 0.6303 | 0.7892 |
55
- | No log | 2.0 | 498 | 0.5514 | 0.6437 | 0.7922 |
56
- | 0.5616 | 3.0 | 747 | 0.5604 | 0.6567 | 0.7945 |
57
-
58
-
59
  ### Framework versions
60
 
61
  - Transformers 4.34.0
 
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
 
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
 
 
42
 
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
50
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
  - lr_scheduler_type: linear
52
  - num_epochs: 3
53
 
 
 
 
 
 
 
 
 
 
54
  ### Framework versions
55
 
56
  - Transformers 4.34.0
config.json CHANGED
@@ -11,18 +11,18 @@
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 1024,
13
  "id2label": {
14
- "0": "LABEL_0",
15
- "1": "LABEL_1",
16
- "2": "LABEL_2",
17
- "3": "LABEL_3"
18
  },
19
  "initializer_range": 0.02,
20
  "intermediate_size": 4096,
21
  "label2id": {
22
- "LABEL_0": 0,
23
- "LABEL_1": 1,
24
- "LABEL_2": 2,
25
- "LABEL_3": 3
26
  },
27
  "layer_norm_eps": 1e-05,
28
  "max_position_embeddings": 514,
 
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 1024,
13
  "id2label": {
14
+ "0": "Positive",
15
+ "1": "Negative",
16
+ "2": "Neutral",
17
+ "3": "Mixed"
18
  },
19
  "initializer_range": 0.02,
20
  "intermediate_size": 4096,
21
  "label2id": {
22
+ "Mixed": 3,
23
+ "Negative": 1,
24
+ "Neutral": 2,
25
+ "Positive": 0
26
  },
27
  "layer_norm_eps": 1e-05,
28
  "max_position_embeddings": 514,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9aa52be83a88d1fd313350b18323ed105a9c38e72cff8db13d0d65124632447
3
  size 2239713713
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55e641ef208c797251140016230a92889e1abc07a0c0d4bae12996490fec5b4d
3
  size 2239713713