End of training
Browse files- README.md +77 -0
- 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-ArabicBERT
|
| 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-ArabicBERT
|
| 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.4876
|
| 20 |
+
- Accuracy: 0.85
|
| 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: 2e-05
|
| 40 |
+
- train_batch_size: 16
|
| 41 |
+
- eval_batch_size: 16
|
| 42 |
+
- seed: 42
|
| 43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 44 |
+
- lr_scheduler_type: linear
|
| 45 |
+
- num_epochs: 10
|
| 46 |
+
|
| 47 |
+
### Training results
|
| 48 |
+
|
| 49 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 50 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 51 |
+
| No log | 0.07 | 50 | 0.3703 | 0.83 |
|
| 52 |
+
| No log | 0.14 | 100 | 0.3510 | 0.81 |
|
| 53 |
+
| No log | 0.21 | 150 | 0.3678 | 0.81 |
|
| 54 |
+
| No log | 0.27 | 200 | 0.3237 | 0.85 |
|
| 55 |
+
| No log | 0.34 | 250 | 0.2939 | 0.86 |
|
| 56 |
+
| No log | 0.41 | 300 | 0.3302 | 0.83 |
|
| 57 |
+
| No log | 0.48 | 350 | 0.3519 | 0.85 |
|
| 58 |
+
| No log | 0.55 | 400 | 0.3530 | 0.85 |
|
| 59 |
+
| No log | 0.62 | 450 | 0.3068 | 0.85 |
|
| 60 |
+
| 0.3656 | 0.68 | 500 | 0.3368 | 0.86 |
|
| 61 |
+
| 0.3656 | 0.75 | 550 | 0.3254 | 0.86 |
|
| 62 |
+
| 0.3656 | 0.82 | 600 | 0.3363 | 0.85 |
|
| 63 |
+
| 0.3656 | 0.89 | 650 | 0.3309 | 0.89 |
|
| 64 |
+
| 0.3656 | 0.96 | 700 | 0.2996 | 0.89 |
|
| 65 |
+
| 0.3656 | 1.03 | 750 | 0.4742 | 0.81 |
|
| 66 |
+
| 0.3656 | 1.1 | 800 | 0.4376 | 0.86 |
|
| 67 |
+
| 0.3656 | 1.16 | 850 | 0.3502 | 0.85 |
|
| 68 |
+
| 0.3656 | 1.23 | 900 | 0.5407 | 0.83 |
|
| 69 |
+
| 0.3656 | 1.3 | 950 | 0.4876 | 0.85 |
|
| 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 |
-
"
|
| 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,
|