Add SetFit model
Browse files- README.md +33 -25
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -9,16 +9,17 @@ base_model: Omar-Nasr/setfitmodel
|
|
9 |
metrics:
|
10 |
- accuracy
|
11 |
widget:
|
12 |
-
- text: ' I didn''t go outside too much'
|
13 |
- text: ' I like art and nature but you can’t really talk about those for more than
|
14 |
a few seconds'
|
15 |
-
- text: '
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
22 |
pipeline_tag: text-classification
|
23 |
inference: true
|
24 |
model-index:
|
@@ -33,7 +34,7 @@ model-index:
|
|
33 |
split: test
|
34 |
metrics:
|
35 |
- type: accuracy
|
36 |
-
value: 0.
|
37 |
name: Accuracy
|
38 |
---
|
39 |
|
@@ -65,19 +66,19 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
65 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
66 |
|
67 |
### Model Labels
|
68 |
-
| Label | Examples
|
69 |
-
|
70 |
-
| 1.0 | <ul><li>'
|
71 |
-
|
|
72 |
-
|
|
73 |
-
|
|
74 |
|
75 |
## Evaluation
|
76 |
|
77 |
### Metrics
|
78 |
| Label | Accuracy |
|
79 |
|:--------|:---------|
|
80 |
-
| **all** | 0.
|
81 |
|
82 |
## Uses
|
83 |
|
@@ -97,7 +98,7 @@ from setfit import SetFitModel
|
|
97 |
# Download from the 🤗 Hub
|
98 |
model = SetFitModel.from_pretrained("Omar-Nasr/setfitmodel")
|
99 |
# Run inference
|
100 |
-
preds = model("
|
101 |
```
|
102 |
|
103 |
<!--
|
@@ -127,16 +128,16 @@ preds = model(" I didn't go outside too much")
|
|
127 |
## Training Details
|
128 |
|
129 |
### Training Set Metrics
|
130 |
-
| Training set | Min | Median | Max
|
131 |
-
|
132 |
-
| Word count |
|
133 |
|
134 |
| Label | Training Sample Count |
|
135 |
|:------|:----------------------|
|
136 |
-
| 0.0 |
|
137 |
-
| 1.0 |
|
138 |
-
| 2.0 |
|
139 |
-
| 3.0 |
|
140 |
|
141 |
### Training Hyperparameters
|
142 |
- batch_size: (8, 8)
|
@@ -158,7 +159,14 @@ preds = model(" I didn't go outside too much")
|
|
158 |
### Training Results
|
159 |
| Epoch | Step | Training Loss | Validation Loss |
|
160 |
|:------:|:----:|:-------------:|:---------------:|
|
161 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
### Framework Versions
|
164 |
- Python: 3.10.13
|
|
|
9 |
metrics:
|
10 |
- accuracy
|
11 |
widget:
|
|
|
12 |
- text: ' I like art and nature but you can’t really talk about those for more than
|
13 |
a few seconds'
|
14 |
+
- text: ' That''s kind of the nature of my volunteer work, but you could volunteer
|
15 |
+
with a food bank or boys and girls club, which would involve more social interaction
|
16 |
+
Just breaking that cycle by going for a short walk around the neighbourhood is
|
17 |
+
a good idea'
|
18 |
+
- text: ' That being heat, sweat, more people outside and you wear less clothes on
|
19 |
+
you (not so comfortable being a fat guy and sweat can be seen on your shirt)'
|
20 |
+
- text: ' Want to join soccer club but so scared'
|
21 |
+
- text: ' I literally do not leave the house, I will sometimes go in the garden but
|
22 |
+
no further So I just ran outside and back to the car'
|
23 |
pipeline_tag: text-classification
|
24 |
inference: true
|
25 |
model-index:
|
|
|
34 |
split: test
|
35 |
metrics:
|
36 |
- type: accuracy
|
37 |
+
value: 0.5866666666666667
|
38 |
name: Accuracy
|
39 |
---
|
40 |
|
|
|
66 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
67 |
|
68 |
### Model Labels
|
69 |
+
| Label | Examples |
|
70 |
+
|:------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
71 |
+
| 1.0 | <ul><li>' Go out for a walk once a day additionally and slowly start increasing the time you spend outside Go out for a walk once a day additionally and slowly start increasing the time you spend outside Start doing sport, either outdoors or at a gym If you can, try to take your dog to a dog park or something like that'</li><li>' Try challenging yourself more, take a walk in the park, small things like that make you better Try challenging yourself more, take a walk in the park, small things like that make you better '</li><li>" Now I'm not saying to go to a party on the spot, just go out, shop, take a walk in the park, that kind of thing Now I'm not saying to go to a party on the spot, just go out, shop, take a walk in the park, that kind of thing"</li></ul> |
|
72 |
+
| 2.0 | <ul><li>' I’m an equestrian, so I ride horses and manage for a pretty famous trainer I can hold a non work related conversation with a stranger while I’m working but if I met that same person outside of the work day I’d have a panic attack and not be able to say a word'</li><li>' On long walks to errands, and whilst power walking for exercise'</li><li>' She said no, but we have a tasty forest fruit mix cake I felt high as a kite walking home'</li></ul> |
|
73 |
+
| 0.0 | <ul><li>' Good to know that some people are in the same camp'</li><li>" I'm sure if the worlds ever did clash that your friends would understand (few people actually enjoy being at work) and, worst case scenario, your coworkers would be surprised at your outgoing nature while around friends"</li><li>' If anything you should be thinking about wearing sun screen so you retain your good skin as it becomes your ally as you age outside'</li></ul> |
|
74 |
+
| 3.0 | <ul><li>" While I ended up making progress, it wasn't as fast as I had hoped and I still had a lot of trouble doing some things (such as jogging in public)"</li><li>' One, frack you guys who say “just get over it”, you’ve probably never dealt with anxiety, it’s like you are carrying the weight of everyone’s judgements and eyes on you with every possibility of any and every event running through your head all the time I am trying, I force myself outside and to interact but it’s terrifying and people just don’t seem to get that'</li><li>" I want to go swimming, anxiety and low self esteem make it really hard I want to go swimming, anxiety and low self esteem make it really hard I'm at least planning to go for a swim at a nearby lake but there is one problem I have: I'm not really confident with my body"</li></ul> |
|
75 |
|
76 |
## Evaluation
|
77 |
|
78 |
### Metrics
|
79 |
| Label | Accuracy |
|
80 |
|:--------|:---------|
|
81 |
+
| **all** | 0.5867 |
|
82 |
|
83 |
## Uses
|
84 |
|
|
|
98 |
# Download from the 🤗 Hub
|
99 |
model = SetFitModel.from_pretrained("Omar-Nasr/setfitmodel")
|
100 |
# Run inference
|
101 |
+
preds = model(" Want to join soccer club but so scared")
|
102 |
```
|
103 |
|
104 |
<!--
|
|
|
128 |
## Training Details
|
129 |
|
130 |
### Training Set Metrics
|
131 |
+
| Training set | Min | Median | Max |
|
132 |
+
|:-------------|:----|:--------|:-----|
|
133 |
+
| Word count | 4 | 51.2656 | 1083 |
|
134 |
|
135 |
| Label | Training Sample Count |
|
136 |
|:------|:----------------------|
|
137 |
+
| 0.0 | 16 |
|
138 |
+
| 1.0 | 16 |
|
139 |
+
| 2.0 | 16 |
|
140 |
+
| 3.0 | 16 |
|
141 |
|
142 |
### Training Hyperparameters
|
143 |
- batch_size: (8, 8)
|
|
|
159 |
### Training Results
|
160 |
| Epoch | Step | Training Loss | Validation Loss |
|
161 |
|:------:|:----:|:-------------:|:---------------:|
|
162 |
+
| 0.0026 | 1 | 0.0 | - |
|
163 |
+
| 0.1302 | 50 | 0.0001 | - |
|
164 |
+
| 0.2604 | 100 | 0.0 | - |
|
165 |
+
| 0.3906 | 150 | 0.0 | - |
|
166 |
+
| 0.5208 | 200 | 0.0 | - |
|
167 |
+
| 0.6510 | 250 | 0.0 | - |
|
168 |
+
| 0.7812 | 300 | 0.0 | - |
|
169 |
+
| 0.9115 | 350 | 0.0 | - |
|
170 |
|
171 |
### Framework Versions
|
172 |
- Python: 3.10.13
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1421483904
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47d5829d51b2b3335f5b31b2902c5654da96b96aeae75a73035e4d3e34eca94b
|
3 |
size 1421483904
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 33639
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5675756feed913ca0a3ac1669818481972b7f69bcbb0c404374c09b2e4d10c98
|
3 |
size 33639
|