Text Classification
Transformers
PyTorch
Safetensors
Arabic
bert
hate-speech
gender-based-violence
arabic
binary-classification
pilot
Eval Results (legacy)
text-embeddings-inference
Instructions to use thejosango/nuha-ajp-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thejosango/nuha-ajp-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="thejosango/nuha-ajp-binary")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("thejosango/nuha-ajp-binary") model = AutoModelForSequenceClassification.from_pretrained("thejosango/nuha-ajp-binary") - Notebooks
- Google Colab
- Kaggle
binary-5
Browse files- README.md +20 -21
- config.toml +2 -2
- pytorch_model.bin +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -23,13 +23,13 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
-
value: 0.
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
-
value: 0.
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
-
value: 0.
|
| 33 |
---
|
| 34 |
|
| 35 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -39,10 +39,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 39 |
|
| 40 |
This model is a fine-tuned version of [thejosango/nuha-mlm](https://huggingface.co/thejosango/nuha-mlm) on the nuha-dataset dataset.
|
| 41 |
It achieves the following results on the evaluation set:
|
| 42 |
-
- Loss: 0.
|
| 43 |
-
- F1: 0.
|
| 44 |
-
- Precision: 0.
|
| 45 |
-
- Recall: 0.
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
@@ -78,20 +78,19 @@ The following hyperparameters were used during training:
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
-
| 0.
|
| 87 |
-
| 0.
|
| 88 |
-
| 0.
|
| 89 |
-
| 0.
|
| 90 |
-
| 0.
|
| 91 |
-
| 0.
|
| 92 |
-
| 0.
|
| 93 |
-
| 0.
|
| 94 |
-
| 0.4367 | 8.93 | 7000 | 0.5595 | 0.5653 | 0.7138 | 0.4679 | None |
|
| 95 |
|
| 96 |
|
| 97 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.665627088438405
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.6102941176470589
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.7319941205291524
|
| 33 |
---
|
| 34 |
|
| 35 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 39 |
|
| 40 |
This model is a fine-tuned version of [thejosango/nuha-mlm](https://huggingface.co/thejosango/nuha-mlm) on the nuha-dataset dataset.
|
| 41 |
It achieves the following results on the evaluation set:
|
| 42 |
+
- Loss: 0.6040
|
| 43 |
+
- F1: 0.6656
|
| 44 |
+
- Precision: 0.6103
|
| 45 |
+
- Recall: 0.7320
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
+
| 0.9793 | 0.64 | 500 | 0.6349 | 0.6207 | 0.5750 | 0.6742 | None |
|
| 82 |
+
| 0.7395 | 1.28 | 1000 | 0.6231 | 0.6212 | 0.6139 | 0.6286 | None |
|
| 83 |
+
| 0.7008 | 1.91 | 1500 | 0.5850 | 0.6487 | 0.5941 | 0.7144 | None |
|
| 84 |
+
| 0.637 | 2.55 | 2000 | 0.5758 | 0.6521 | 0.5919 | 0.7261 | None |
|
| 85 |
+
| 0.6338 | 3.19 | 2500 | 0.5791 | 0.6497 | 0.5350 | 0.8270 | None |
|
| 86 |
+
| 0.6066 | 3.83 | 3000 | 0.5688 | 0.6557 | 0.5596 | 0.7918 | None |
|
| 87 |
+
| 0.5755 | 4.46 | 3500 | 0.5775 | 0.6507 | 0.5337 | 0.8334 | None |
|
| 88 |
+
| 0.5581 | 5.1 | 4000 | 0.5680 | 0.6661 | 0.5807 | 0.7810 | None |
|
| 89 |
+
| 0.555 | 5.74 | 4500 | 0.5712 | 0.6644 | 0.5604 | 0.8158 | None |
|
| 90 |
+
| 0.525 | 6.38 | 5000 | 0.5730 | 0.6638 | 0.5667 | 0.8011 | None |
|
| 91 |
+
| 0.5294 | 7.02 | 5500 | 0.5752 | 0.6692 | 0.6085 | 0.7433 | None |
|
| 92 |
+
| 0.5053 | 7.65 | 6000 | 0.5854 | 0.6610 | 0.5645 | 0.7972 | None |
|
| 93 |
+
| 0.4835 | 8.29 | 6500 | 0.6040 | 0.6656 | 0.6103 | 0.7320 | None |
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
### Framework versions
|
config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
@@ -32,6 +32,6 @@ per_device_eval_batch_size = 32
|
|
| 32 |
gradient_accumulation_steps = 2
|
| 33 |
weight_decay = 0.01
|
| 34 |
label_smoothing_factor = 0.1
|
| 35 |
-
weighted_loss =
|
| 36 |
early_stopping_patience = 5
|
| 37 |
early_stopping_threshold = 0.005
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-5"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
|
|
| 32 |
gradient_accumulation_steps = 2
|
| 33 |
weight_decay = 0.01
|
| 34 |
label_smoothing_factor = 0.1
|
| 35 |
+
weighted_loss = true
|
| 36 |
early_stopping_patience = 5
|
| 37 |
early_stopping_threshold = 0.005
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 313992076
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7db70f3b2c4f2256831e61ee73a8b38812f9d97efa8f5d0a9988315e673c286c
|
| 3 |
size 313992076
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4091
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bca4863cd3f201e2a14530833eccce4f8cf44d225e6c55891d01d4ccb4961a7e
|
| 3 |
size 4091
|