Add SetFit model
Browse files- README.md +16 -23
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -11,21 +11,14 @@ datasets:
|
|
11 |
metrics:
|
12 |
- accuracy
|
13 |
widget:
|
14 |
-
- text:
|
15 |
-
|
16 |
-
- text:
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
- text:
|
21 |
-
|
22 |
-
a 8 billion global population). To say that terrorism has no religion and colour,
|
23 |
-
is the biggest bluff in the world. If Islam was such a peaceful religion, then
|
24 |
-
why are refugees from Islamic countries seek non-Muslim countries for settlement....it
|
25 |
-
is because they want to Islamise the world.
|
26 |
-
- text: It's so sick and sad that young people will think of the concept of clout
|
27 |
-
like rap niggers invented it because they aren't even properly taught about the
|
28 |
-
english language anymore.
|
29 |
pipeline_tag: text-classification
|
30 |
inference: false
|
31 |
model-index:
|
@@ -40,7 +33,7 @@ model-index:
|
|
40 |
split: test
|
41 |
metrics:
|
42 |
- type: accuracy
|
43 |
-
value: 0.
|
44 |
name: Accuracy
|
45 |
---
|
46 |
|
@@ -76,7 +69,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
76 |
### Metrics
|
77 |
| Label | Accuracy |
|
78 |
|:--------|:---------|
|
79 |
-
| **all** | 0.
|
80 |
|
81 |
## Uses
|
82 |
|
@@ -96,7 +89,7 @@ from setfit import SetFitModel
|
|
96 |
# Download from the 🤗 Hub
|
97 |
model = SetFitModel.from_pretrained("amitprgx/setfit-ethos-multilabel-example")
|
98 |
# Run inference
|
99 |
-
preds = model("
|
100 |
```
|
101 |
|
102 |
<!--
|
@@ -128,7 +121,7 @@ preds = model("WOW THIS GUY TALKS LIKE A RETARD HAHAHAHAHAH")
|
|
128 |
### Training Set Metrics
|
129 |
| Training set | Min | Median | Max |
|
130 |
|:-------------|:----|:--------|:----|
|
131 |
-
| Word count |
|
132 |
|
133 |
### Training Hyperparameters
|
134 |
- batch_size: (16, 16)
|
@@ -151,10 +144,10 @@ preds = model("WOW THIS GUY TALKS LIKE A RETARD HAHAHAHAHAH")
|
|
151 |
### Training Results
|
152 |
| Epoch | Step | Training Loss | Validation Loss |
|
153 |
|:------:|:----:|:-------------:|:---------------:|
|
154 |
-
| 0.0063 | 1 | 0.
|
155 |
-
| 0.3125 | 50 | 0.
|
156 |
-
| 0.625 | 100 | 0.
|
157 |
-
| 0.9375 | 150 | 0.
|
158 |
|
159 |
### Framework Versions
|
160 |
- Python: 3.10.12
|
|
|
11 |
metrics:
|
12 |
- accuracy
|
13 |
widget:
|
14 |
+
- text: Roses are red. Your sweatshirt is blue. When a white girl gets raped, the
|
15 |
+
suspect for sure is you!
|
16 |
+
- text: The Jew Faggot Behind The Financial Collapse.
|
17 |
+
- text: Magnificient. Contrary to what the media reports, I have hope for the people
|
18 |
+
of Europe to expel these leeches.
|
19 |
+
- text: I'd get my money back if I were you. Your sex change was a complete failure.
|
20 |
+
- text: If only there was a way to get children without having to get women pregnant
|
21 |
+
we had them all ready killed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
pipeline_tag: text-classification
|
23 |
inference: false
|
24 |
model-index:
|
|
|
33 |
split: test
|
34 |
metrics:
|
35 |
- type: accuracy
|
36 |
+
value: 0.2857142857142857
|
37 |
name: Accuracy
|
38 |
---
|
39 |
|
|
|
69 |
### Metrics
|
70 |
| Label | Accuracy |
|
71 |
|:--------|:---------|
|
72 |
+
| **all** | 0.2857 |
|
73 |
|
74 |
## Uses
|
75 |
|
|
|
89 |
# Download from the 🤗 Hub
|
90 |
model = SetFitModel.from_pretrained("amitprgx/setfit-ethos-multilabel-example")
|
91 |
# Run inference
|
92 |
+
preds = model("The Jew Faggot Behind The Financial Collapse.")
|
93 |
```
|
94 |
|
95 |
<!--
|
|
|
121 |
### Training Set Metrics
|
122 |
| Training set | Min | Median | Max |
|
123 |
|:-------------|:----|:--------|:----|
|
124 |
+
| Word count | 3 | 17.4062 | 87 |
|
125 |
|
126 |
### Training Hyperparameters
|
127 |
- batch_size: (16, 16)
|
|
|
144 |
### Training Results
|
145 |
| Epoch | Step | Training Loss | Validation Loss |
|
146 |
|:------:|:----:|:-------------:|:---------------:|
|
147 |
+
| 0.0063 | 1 | 0.3199 | - |
|
148 |
+
| 0.3125 | 50 | 0.0952 | - |
|
149 |
+
| 0.625 | 100 | 0.1276 | - |
|
150 |
+
| 0.9375 | 150 | 0.0956 | - |
|
151 |
|
152 |
### Framework Versions
|
153 |
- Python: 3.10.12
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 437967672
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6348d7780130ece55a5f6f68dc9607745970a1bcc8daaaddb9c6f32b499f4122
|
3 |
size 437967672
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 52836
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65adefa87a8e75f175e0b0f9836d6b087d4f6cf46fc5285542d026cacb52830e
|
3 |
size 52836
|