Anwaarma commited on
Commit
c3d5ed3
1 Parent(s): cb1767c

End of training

Browse files
Files changed (2) hide show
  1. README.md +77 -0
  2. config.json +3 -9
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: asafaya/bert-base-arabic
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: Improved-Arabic-bert-base
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-Arabic-bert-base
16
+
17
+ This model is a fine-tuned version of [asafaya/bert-base-arabic](https://huggingface.co/asafaya/bert-base-arabic) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.7595
20
+ - Accuracy: 0.86
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.5197 | 0.55 | 50 | 0.3977 | 0.8 |
52
+ | 0.3323 | 1.1 | 100 | 0.3298 | 0.86 |
53
+ | 0.2844 | 1.65 | 150 | 0.3401 | 0.84 |
54
+ | 0.2128 | 2.2 | 200 | 0.4569 | 0.8 |
55
+ | 0.1539 | 2.75 | 250 | 0.4315 | 0.83 |
56
+ | 0.1346 | 3.3 | 300 | 0.5178 | 0.81 |
57
+ | 0.0933 | 3.85 | 350 | 0.5167 | 0.84 |
58
+ | 0.0641 | 4.4 | 400 | 0.6903 | 0.82 |
59
+ | 0.0698 | 4.95 | 450 | 0.5628 | 0.85 |
60
+ | 0.028 | 5.49 | 500 | 0.6472 | 0.86 |
61
+ | 0.0449 | 6.04 | 550 | 0.6739 | 0.85 |
62
+ | 0.0133 | 6.59 | 600 | 0.6925 | 0.84 |
63
+ | 0.0177 | 7.14 | 650 | 0.6716 | 0.87 |
64
+ | 0.0209 | 7.69 | 700 | 0.6644 | 0.89 |
65
+ | 0.0226 | 8.24 | 750 | 0.7650 | 0.84 |
66
+ | 0.0137 | 8.79 | 800 | 0.8186 | 0.86 |
67
+ | 0.0164 | 9.34 | 850 | 0.7771 | 0.86 |
68
+ | 0.006 | 9.89 | 900 | 0.7805 | 0.85 |
69
+ | 0.0069 | 10.44 | 950 | 0.7595 | 0.86 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.34.1
75
+ - Pytorch 2.1.0+cu118
76
+ - Datasets 2.14.7
77
+ - Tokenizers 0.14.1
config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_name_or_path": "asafaya/bert-base-arabic",
3
  "architectures": [
4
- "BertForMaskedLM"
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",
@@ -27,6 +19,8 @@
27
  "output_past": true,
28
  "pad_token_id": 0,
29
  "position_embedding_type": "absolute",
 
 
30
  "transformers_version": "4.34.1",
31
  "type_vocab_size": 2,
32
  "use_cache": true,
 
1
  {
2
  "_name_or_path": "asafaya/bert-base-arabic",
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",
 
19
  "output_past": true,
20
  "pad_token_id": 0,
21
  "position_embedding_type": "absolute",
22
+ "problem_type": "single_label_classification",
23
+ "torch_dtype": "float32",
24
  "transformers_version": "4.34.1",
25
  "type_vocab_size": 2,
26
  "use_cache": true,