Omar-Nasr commited on
Commit
3f95681
1 Parent(s): f99eb10

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +33 -25
  2. model.safetensors +1 -1
  3. 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: ' The only times I call in is when I am so sick that I can''t physically walk
16
- On Monday, I was very sick and running a 101'
17
- - text: ' But even then, I didn''t have any other problems outside school I still
18
- had no friends at European school, I haven''t had any walks which I had constantly
19
- with my friends back in Ukraine'
20
- - text: ' Your body is trying to reduce weight by throwing up and having to go to
21
- the bathroon, in case you need to run from the "enemy", so you''ll be lighter'
 
 
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.49166666666666664
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>' 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>' Last year most of my college friends took advantage of Labor Day weekend to go on a trip to a cabin and have fun together Last year most of my college friends took advantage of Labor Day weekend to go on a trip to a cabin and have fun together I was also thinking about going on a backpacking trip alone so I can get some time to myself, because I don’t like how my relationships with other people are affecting my sense of self worth'</li><li>' and i do biking, i bike for atleast 20mins and towards the end i feel anxious free, less socially anxious too and i do biking, i bike for atleast 20mins and towards the end i feel anxious free, less socially anxious too'</li></ul> |
71
- | 3.0 | <ul><li>"It's whenever I look someone in the eye, when I'm on my bike or when I'm walking somewhere, I feel like they look at me and ridicule me in their headsIt's whenever I look someone in the eye, when I'm on my bike or when I'm walking somewhere, I feel like they look at me and ridicule me in their heads"</li><li>" But even then, I didn't have any other problems outside school I still had no friends at European school, I haven't had any walks which I had constantly with my friends back in Ukraine"</li><li>' However, one day after lunch I was walking to his classroom to get to his class Every time I go outside I instantly get nervous'</li></ul> |
72
- | 2.0 | <ul><li>' I literally do not leave the house, I will sometimes go in the garden but no further So I just ran outside and back to the car'</li><li>" But we can't sleep in a hotel, we have go camping"</li><li>' I like art and nature but you can’t really talk about those for more than a few seconds'</li></ul> |
73
- | 0.0 | <ul><li>" I'm not a fat, ugly, 400 lb guy who doesn't shower, I'm average looking, maybe a little overweight for my height, kind of short cause it runs in my family"</li><li>' I would do this too but then I run the risk of meeting someone I know lol'</li><li>" The only times I call in is when I am so sick that I can't physically walk On Monday, I was very sick and running a 101"</li></ul> |
74
 
75
  ## Evaluation
76
 
77
  ### Metrics
78
  | Label | Accuracy |
79
  |:--------|:---------|
80
- | **all** | 0.4917 |
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(" I didn't go outside too much")
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 | 7 | 33.0625 | 87 |
133
 
134
  | Label | Training Sample Count |
135
  |:------|:----------------------|
136
- | 0.0 | 4 |
137
- | 1.0 | 4 |
138
- | 2.0 | 4 |
139
- | 3.0 | 4 |
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.0417 | 1 | 0.0033 | - |
 
 
 
 
 
 
 
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:a30000c458cfbf1099d2d1d02cff10cf7ead86d58820d61423625ae0fb8380f5
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:beba8d1ca041631a7df9a2906e61fff1ee970713a6c2c6faecd7161645a8334c
3
  size 33639
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5675756feed913ca0a3ac1669818481972b7f69bcbb0c404374c09b2e4d10c98
3
  size 33639