akhooli commited on
Commit
c86127e
1 Parent(s): e215b38

Add SetFit model

Browse files
Files changed (5) hide show
  1. README.md +12 -12
  2. config.json +1 -1
  3. config_setfit.json +2 -2
  4. model.safetensors +1 -1
  5. model_head.pkl +1 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- base_model: akhooli/Arabic-SBERT-100K
3
  library_name: setfit
4
  metrics:
5
  - accuracy
@@ -35,7 +35,7 @@ widget:
35
  فالفندق
36
  inference: true
37
  model-index:
38
- - name: SetFit with akhooli/Arabic-SBERT-100K
39
  results:
40
  - task:
41
  type: text-classification
@@ -46,13 +46,13 @@ model-index:
46
  split: test
47
  metrics:
48
  - type: accuracy
49
- value: 0.49646464646464644
50
  name: Accuracy
51
  ---
52
 
53
- # SetFit with akhooli/Arabic-SBERT-100K
54
 
55
- This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [akhooli/Arabic-SBERT-100K](https://huggingface.co/akhooli/Arabic-SBERT-100K) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
56
 
57
  The model has been trained using an efficient few-shot learning technique that involves:
58
 
@@ -63,7 +63,7 @@ The model has been trained using an efficient few-shot learning technique that i
63
 
64
  ### Model Description
65
  - **Model Type:** SetFit
66
- - **Sentence Transformer body:** [akhooli/Arabic-SBERT-100K](https://huggingface.co/akhooli/Arabic-SBERT-100K)
67
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
68
  - **Maximum Sequence Length:** 512 tokens
69
  - **Number of Classes:** 3 classes
@@ -89,7 +89,7 @@ The model has been trained using an efficient few-shot learning technique that i
89
  ### Metrics
90
  | Label | Accuracy |
91
  |:--------|:---------|
92
- | **all** | 0.4965 |
93
 
94
  ## Uses
95
 
@@ -170,11 +170,11 @@ preds = model("مكان راحه البال . المكان نظيف جدا وم
170
  ### Training Results
171
  | Epoch | Step | Training Loss | Validation Loss |
172
  |:------:|:----:|:-------------:|:---------------:|
173
- | 0.0833 | 1 | 0.1967 | - |
174
- | 1.0 | 12 | - | 0.2518 |
175
- | 2.0 | 24 | - | 0.2900 |
176
- | 3.0 | 36 | - | 0.2936 |
177
- | 4.0 | 48 | - | 0.2964 |
178
 
179
  ### Framework Versions
180
  - Python: 3.10.14
 
1
  ---
2
+ base_model: akhooli/sbert_ar_nli_500k
3
  library_name: setfit
4
  metrics:
5
  - accuracy
 
35
  فالفندق
36
  inference: true
37
  model-index:
38
+ - name: SetFit with akhooli/sbert_ar_nli_500k
39
  results:
40
  - task:
41
  type: text-classification
 
46
  split: test
47
  metrics:
48
  - type: accuracy
49
+ value: 0.46636363636363637
50
  name: Accuracy
51
  ---
52
 
53
+ # SetFit with akhooli/sbert_ar_nli_500k
54
 
55
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [akhooli/sbert_ar_nli_500k](https://huggingface.co/akhooli/sbert_ar_nli_500k) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
56
 
57
  The model has been trained using an efficient few-shot learning technique that involves:
58
 
 
63
 
64
  ### Model Description
65
  - **Model Type:** SetFit
66
+ - **Sentence Transformer body:** [akhooli/sbert_ar_nli_500k](https://huggingface.co/akhooli/sbert_ar_nli_500k)
67
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
68
  - **Maximum Sequence Length:** 512 tokens
69
  - **Number of Classes:** 3 classes
 
89
  ### Metrics
90
  | Label | Accuracy |
91
  |:--------|:---------|
92
+ | **all** | 0.4664 |
93
 
94
  ## Uses
95
 
 
170
  ### Training Results
171
  | Epoch | Step | Training Loss | Validation Loss |
172
  |:------:|:----:|:-------------:|:---------------:|
173
+ | 0.0833 | 1 | 0.2047 | - |
174
+ | 1.0 | 12 | - | 0.2570 |
175
+ | 2.0 | 24 | - | 0.2721 |
176
+ | 3.0 | 36 | - | 0.2744 |
177
+ | 4.0 | 48 | - | 0.2741 |
178
 
179
  ### Framework Versions
180
  - Python: 3.10.14
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "akhooli/Arabic-SBERT-100K",
3
  "architectures": [
4
  "BertModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "akhooli/sbert_ar_nli_500k",
3
  "architectures": [
4
  "BertModel"
5
  ],
config_setfit.json CHANGED
@@ -1,8 +1,8 @@
1
  {
 
2
  "labels": [
3
  "Negative",
4
  "Positive",
5
  "Mixed"
6
- ],
7
- "normalize_embeddings": false
8
  }
 
1
  {
2
+ "normalize_embeddings": false,
3
  "labels": [
4
  "Negative",
5
  "Positive",
6
  "Mixed"
7
+ ]
 
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:55a6997eb20834f3c80b4489a66b1b09f8c2c93031d42496411375a5ac2013b8
3
  size 540795752
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:371918891d5e1705e6e5bdf494f8d81a1f0cc8c8ff58cda6a03b30fd6b701668
3
  size 540795752
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0cceeffcadaee046eb44ecebfb588a2896dbe29f1121815b41df9085b1911ff2
3
  size 19375
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1419f33885c2a0aca451451040cd7f8c3fb8525745151bf49e5db609c8871107
3
  size 19375