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-22
Browse files- README.md +11 -11
- config.json +1 -1
- config.toml +1 -1
- pytorch_model.bin +2 -2
- 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,10 +78,10 @@ The following hyperparameters were used during training:
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
-
|
|
| 82 |
-
|
|
| 83 |
-
|
|
| 84 |
-
|
|
| 85 |
|
| 86 |
|
| 87 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.6588341617713511
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.5746945210878991
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.771836950767602
|
| 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.5706
|
| 43 |
+
- F1: 0.6588
|
| 44 |
+
- Precision: 0.5747
|
| 45 |
+
- Recall: 0.7718
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
|
|
| 78 |
|
| 79 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 80 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 81 |
+
| 1.4301 | 1.06 | 500 | 0.6781 | 0.6258 | 0.5196 | 0.7867 | None |
|
| 82 |
+
| 0.9299 | 2.12 | 1000 | 0.5772 | 0.6445 | 0.5834 | 0.7200 | None |
|
| 83 |
+
| 0.8169 | 3.18 | 1500 | 0.5642 | 0.6496 | 0.5847 | 0.7305 | None |
|
| 84 |
+
| 0.7177 | 4.24 | 2000 | 0.5706 | 0.6588 | 0.5747 | 0.7718 | None |
|
| 85 |
|
| 86 |
|
| 87 |
### 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
|
@@ -16,7 +16,7 @@ revision = "984ac09880b24959f6767fdbea8757d2c312df46"
|
|
| 16 |
hidden_dropout_prob = 0.2
|
| 17 |
attention_probs_dropout_prob = 0.2
|
| 18 |
classifier_dropout = 0.2
|
| 19 |
-
|
| 20 |
#num_attention_heads = 12
|
| 21 |
#hidden_size = 768
|
| 22 |
#intermediate_size= null
|
|
|
|
| 16 |
hidden_dropout_prob = 0.2
|
| 17 |
attention_probs_dropout_prob = 0.2
|
| 18 |
classifier_dropout = 0.2
|
| 19 |
+
num_hidden_layers = 4
|
| 20 |
#num_attention_heads = 12
|
| 21 |
#hidden_size = 768
|
| 22 |
#intermediate_size= null
|
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:7c1efd51ecb4054150d1426232ac19968ef61fd47f35e5150bbca041de0e60d0
|
| 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:80966b826c55c63df8f91a25bd0077f06e5e433962b00f3243f8a73bc50f5b94
|
| 3 |
size 4091
|