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-28
Browse files- README.md +23 -17
- config.toml +3 -3
- 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,16 +78,22 @@ The following hyperparameters were used during training:
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
-
|
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
-
| 0.
|
| 87 |
-
| 0.
|
| 88 |
-
| 0.
|
| 89 |
-
| 0.
|
| 90 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.6658038273088657
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.6663582531458179
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.6652503232957695
|
| 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.5203
|
| 43 |
+
- F1: 0.6658
|
| 44 |
+
- Precision: 0.6664
|
| 45 |
+
- Recall: 0.6653
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
+
| 1.0669 | 0.09 | 500 | 1.0365 | 0.5699 | 0.4064 | 0.9531 | None |
|
| 82 |
+
| 0.8978 | 0.18 | 1000 | 1.1794 | 0.5709 | 0.4036 | 0.9756 | None |
|
| 83 |
+
| 0.8142 | 0.28 | 1500 | 0.5742 | 0.6380 | 0.5748 | 0.7168 | None |
|
| 84 |
+
| 0.7269 | 0.37 | 2000 | 0.5638 | 0.6455 | 0.6096 | 0.6858 | None |
|
| 85 |
+
| 0.7215 | 0.46 | 2500 | 0.5475 | 0.6454 | 0.6287 | 0.6630 | None |
|
| 86 |
+
| 0.6828 | 0.55 | 3000 | 0.5702 | 0.6528 | 0.5803 | 0.7460 | None |
|
| 87 |
+
| 0.6857 | 0.65 | 3500 | 0.5348 | 0.6081 | 0.6636 | 0.5612 | None |
|
| 88 |
+
| 0.6381 | 0.74 | 4000 | 0.5609 | 0.6654 | 0.5913 | 0.7608 | None |
|
| 89 |
+
| 0.6476 | 0.83 | 4500 | 0.5565 | 0.6662 | 0.5972 | 0.7532 | None |
|
| 90 |
+
| 0.6124 | 0.92 | 5000 | 0.5468 | 0.6662 | 0.6114 | 0.7318 | None |
|
| 91 |
+
| 0.6292 | 1.02 | 5500 | 0.5409 | 0.6737 | 0.6217 | 0.7353 | None |
|
| 92 |
+
| 0.5904 | 1.11 | 6000 | 0.5565 | 0.6736 | 0.6036 | 0.7621 | None |
|
| 93 |
+
| 0.5926 | 1.2 | 6500 | 0.6091 | 0.6668 | 0.5439 | 0.8614 | None |
|
| 94 |
+
| 0.5962 | 1.29 | 7000 | 0.6201 | 0.6650 | 0.5368 | 0.8736 | None |
|
| 95 |
+
| 0.6056 | 1.39 | 7500 | 0.5477 | 0.6775 | 0.5975 | 0.7824 | None |
|
| 96 |
+
| 0.582 | 1.48 | 8000 | 0.5203 | 0.6658 | 0.6664 | 0.6653 | None |
|
| 97 |
|
| 98 |
|
| 99 |
### Framework versions
|
config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
@@ -7,7 +7,7 @@ type = "binary"
|
|
| 7 |
path = "thejosango/nuha-dataset"
|
| 8 |
dataset_revision = "main"
|
| 9 |
augment_ratio = 0.0
|
| 10 |
-
undersampling_strategy =
|
| 11 |
|
| 12 |
|
| 13 |
[model]
|
|
@@ -25,6 +25,6 @@ per_device_eval_batch_size = 8
|
|
| 25 |
gradient_accumulation_steps = 2
|
| 26 |
weight_decay = 0.01
|
| 27 |
label_smoothing_factor = 0.1
|
| 28 |
-
weighted_loss =
|
| 29 |
early_stopping_patience = 5
|
| 30 |
early_stopping_threshold = 0.005
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-28"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
|
|
| 7 |
path = "thejosango/nuha-dataset"
|
| 8 |
dataset_revision = "main"
|
| 9 |
augment_ratio = 0.0
|
| 10 |
+
undersampling_strategy = "majority"
|
| 11 |
|
| 12 |
|
| 13 |
[model]
|
|
|
|
| 25 |
gradient_accumulation_steps = 2
|
| 26 |
weight_decay = 0.01
|
| 27 |
label_smoothing_factor = 0.1
|
| 28 |
+
weighted_loss = false
|
| 29 |
early_stopping_patience = 5
|
| 30 |
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:4f5f7647297f018fb5effbd25ca4261bfa048f9229c4a3b76e8b39bd0b07841e
|
| 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:5f9eac55e3483cca826ec9ff4f42c7edc38f11182cb9243e70a887c7e5c0598c
|
| 3 |
size 4091
|