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-29
Browse files- README.md +19 -23
- 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,22 +78,18 @@ 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 |
-
| 0.
|
| 92 |
-
| 0.
|
| 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
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.6823729337247026
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.5863533784680738
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.8159985220764825
|
| 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.5626
|
| 43 |
+
- F1: 0.6824
|
| 44 |
+
- Precision: 0.5864
|
| 45 |
+
- Recall: 0.8160
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
+
| 0.6128 | 0.09 | 500 | 0.5843 | 0.6389 | 0.5519 | 0.7585 | None |
|
| 82 |
+
| 0.5868 | 0.18 | 1000 | 0.5623 | 0.6458 | 0.5706 | 0.7438 | None |
|
| 83 |
+
| 0.5746 | 0.28 | 1500 | 0.5489 | 0.6557 | 0.5971 | 0.7270 | None |
|
| 84 |
+
| 0.5718 | 0.37 | 2000 | 0.5487 | 0.6640 | 0.5997 | 0.7438 | None |
|
| 85 |
+
| 0.5727 | 0.46 | 2500 | 0.5417 | 0.6627 | 0.6166 | 0.7162 | None |
|
| 86 |
+
| 0.5532 | 0.55 | 3000 | 0.5525 | 0.6683 | 0.5842 | 0.7807 | None |
|
| 87 |
+
| 0.5552 | 0.65 | 3500 | 0.5337 | 0.6752 | 0.6266 | 0.7319 | None |
|
| 88 |
+
| 0.5419 | 0.74 | 4000 | 0.5891 | 0.6714 | 0.5567 | 0.8456 | None |
|
| 89 |
+
| 0.556 | 0.83 | 4500 | 0.5654 | 0.6782 | 0.5750 | 0.8265 | None |
|
| 90 |
+
| 0.5392 | 0.92 | 5000 | 0.5516 | 0.6794 | 0.5838 | 0.8125 | None |
|
| 91 |
+
| 0.544 | 1.02 | 5500 | 0.5342 | 0.6806 | 0.6149 | 0.7621 | None |
|
| 92 |
+
| 0.5074 | 1.11 | 6000 | 0.5626 | 0.6824 | 0.5864 | 0.8160 | None |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
### Framework versions
|
config.toml
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
| 6 |
[dataset]
|
| 7 |
path = "thejosango/nuha-dataset"
|
| 8 |
dataset_revision = "main"
|
| 9 |
-
augment_ratio = 0.
|
| 10 |
undersampling_strategy = "majority"
|
| 11 |
|
| 12 |
|
|
@@ -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 = false
|
| 29 |
early_stopping_patience = 5
|
| 30 |
early_stopping_threshold = 0.005
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-29"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
| 6 |
[dataset]
|
| 7 |
path = "thejosango/nuha-dataset"
|
| 8 |
dataset_revision = "main"
|
| 9 |
+
augment_ratio = 0.15
|
| 10 |
undersampling_strategy = "majority"
|
| 11 |
|
| 12 |
|
|
|
|
| 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:11d950c115584fc9c0ebbd4eea34c0cf1f5d86bf5aff4965bf81c33b0aa3dcae
|
| 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:4a26b7bcf148496c9117b9b92ccb58b53cf6f8f9610d7a4e2edf66434ae3bde2
|
| 3 |
size 4091
|