Text Classification
Transformers
PyTorch
Arabic
bert
hate-speech
gender-based-violence
arabic
binary-classification
pilot
Eval Results (legacy)
text-embeddings-inference
Instructions to use thejosango/nuha-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thejosango/nuha-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="thejosango/nuha-binary")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("thejosango/nuha-binary") model = AutoModelForSequenceClassification.from_pretrained("thejosango/nuha-binary") - Notebooks
- Google Colab
- Kaggle
binary-55
Browse files- README.md +16 -14
- config.json +1 -1
- config.toml +2 -2
- pytorch_model.bin +2 -2
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -24,13 +24,13 @@ model-index:
|
|
| 24 |
metrics:
|
| 25 |
- name: F1
|
| 26 |
type: f1
|
| 27 |
-
value: 0.
|
| 28 |
- name: Precision
|
| 29 |
type: precision
|
| 30 |
-
value: 0.
|
| 31 |
- name: Recall
|
| 32 |
type: recall
|
| 33 |
-
value: 0.
|
| 34 |
---
|
| 35 |
|
| 36 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -40,10 +40,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 40 |
|
| 41 |
This model is a fine-tuned version of [thejosango/nuha-mlm](https://huggingface.co/thejosango/nuha-mlm) on the nuha-dataset dataset.
|
| 42 |
It achieves the following results on the evaluation set:
|
| 43 |
-
- Loss: 0.
|
| 44 |
-
- F1: 0.
|
| 45 |
-
- Precision: 0.
|
| 46 |
-
- Recall: 0.
|
| 47 |
- Support: None
|
| 48 |
|
| 49 |
## Model description
|
|
@@ -76,13 +76,15 @@ The following hyperparameters were used during training:
|
|
| 76 |
|
| 77 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 78 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 79 |
-
| 0.
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
|
|
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
### Framework versions
|
|
|
|
| 24 |
metrics:
|
| 25 |
- name: F1
|
| 26 |
type: f1
|
| 27 |
+
value: 0.6868284228769497
|
| 28 |
- name: Precision
|
| 29 |
type: precision
|
| 30 |
+
value: 0.6468092051574996
|
| 31 |
- name: Recall
|
| 32 |
type: recall
|
| 33 |
+
value: 0.7321263624607427
|
| 34 |
---
|
| 35 |
|
| 36 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 40 |
|
| 41 |
This model is a fine-tuned version of [thejosango/nuha-mlm](https://huggingface.co/thejosango/nuha-mlm) on the nuha-dataset dataset.
|
| 42 |
It achieves the following results on the evaluation set:
|
| 43 |
+
- Loss: 0.5763
|
| 44 |
+
- F1: 0.6868
|
| 45 |
+
- Precision: 0.6468
|
| 46 |
+
- Recall: 0.7321
|
| 47 |
- Support: None
|
| 48 |
|
| 49 |
## Model description
|
|
|
|
| 76 |
|
| 77 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 78 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 79 |
+
| 0.572 | 0.25 | 500 | 0.5492 | 0.6774 | 0.5836 | 0.8069 | None |
|
| 80 |
+
| 0.5571 | 0.5 | 1000 | 0.5384 | 0.6937 | 0.6053 | 0.8123 | None |
|
| 81 |
+
| 0.541 | 0.75 | 1500 | 0.5344 | 0.6967 | 0.6324 | 0.7755 | None |
|
| 82 |
+
| 0.5359 | 1.0 | 2000 | 0.5300 | 0.7032 | 0.6300 | 0.7957 | None |
|
| 83 |
+
| 0.4984 | 1.26 | 2500 | 0.5406 | 0.7023 | 0.6597 | 0.7508 | None |
|
| 84 |
+
| 0.4878 | 1.51 | 3000 | 0.5415 | 0.7012 | 0.6425 | 0.7718 | None |
|
| 85 |
+
| 0.4847 | 1.76 | 3500 | 0.5435 | 0.6980 | 0.6422 | 0.7645 | None |
|
| 86 |
+
| 0.4779 | 2.01 | 4000 | 0.5526 | 0.7034 | 0.6377 | 0.7842 | None |
|
| 87 |
+
| 0.4265 | 2.26 | 4500 | 0.5763 | 0.6868 | 0.6468 | 0.7321 | None |
|
| 88 |
|
| 89 |
|
| 90 |
### Framework versions
|
config.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"max_position_embeddings": 512,
|
| 24 |
"model_type": "bert",
|
| 25 |
"num_attention_heads": 12,
|
| 26 |
-
"num_hidden_layers":
|
| 27 |
"pad_token_id": 0,
|
| 28 |
"position_embedding_type": "absolute",
|
| 29 |
"problem_type": "single_label_classification",
|
|
|
|
| 23 |
"max_position_embeddings": 512,
|
| 24 |
"model_type": "bert",
|
| 25 |
"num_attention_heads": 12,
|
| 26 |
+
"num_hidden_layers": 4,
|
| 27 |
"pad_token_id": 0,
|
| 28 |
"position_embedding_type": "absolute",
|
| 29 |
"problem_type": "single_label_classification",
|
config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
@@ -13,7 +13,7 @@ undersampling_strategy = false
|
|
| 13 |
[model]
|
| 14 |
pretrained_model_name_or_path = "thejosango/nuha-mlm"
|
| 15 |
revision = "ce20f497544665775129f9ff5b3cd2a3e350dce8"
|
| 16 |
-
num_hidden_layers =
|
| 17 |
classifier_dropout = 0.25
|
| 18 |
|
| 19 |
[training]
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-55"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
|
|
| 13 |
[model]
|
| 14 |
pretrained_model_name_or_path = "thejosango/nuha-mlm"
|
| 15 |
revision = "ce20f497544665775129f9ff5b3cd2a3e350dce8"
|
| 16 |
+
num_hidden_layers = 4
|
| 17 |
classifier_dropout = 0.25
|
| 18 |
|
| 19 |
[training]
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28c3aa09ebd3a0c1b7b418bed98c4e2a3db1ba33304f8af556ae95907e3c2cae
|
| 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:8a03f95e740df4d0f787430d74d3e1a322dbd96f1199c899477c0651189f7b9e
|
| 3 |
size 4091
|