naushin commited on
Commit
6d2305a
1 Parent(s): a923e1a

Add SetFit model

Browse files
Files changed (4) hide show
  1. README.md +26 -18
  2. config_setfit.json +2 -2
  3. model.safetensors +1 -1
  4. model_head.pkl +1 -1
README.md CHANGED
@@ -8,18 +8,26 @@ tags:
8
  metrics:
9
  - accuracy
10
  widget:
11
- - text: She is Female, her heart rate is 89, she walks 3873 steps daily and is Overweight.
12
- She slept at 2 hrs. Yesterday, she slept from 4.0 hrs to 6.0 hrs, with a duration
13
- of 120.0 minutes and 1 interruptions. The day before yesterday, she slept from
14
- 4.0 hrs to 9.0 hrs, with a duration of 300.0 minutes and 2 interruptions.
15
- - text: She is Female, her heart rate is 66, she walks 2413 steps daily and is Underweight.
16
- She slept at 23 hrs. Yesterday, she slept from 23.0 hrs to 7.0 hrs, with a duration
17
- of 472.0 minutes and 5 interruptions. The day before yesterday, she slept from
18
- 23.0 hrs to 5.0 hrs, with a duration of 344.0 minutes and 6 interruptions.
19
- - text: He is Male, his heart rate is 64, he walks 10000 steps daily, and is Normal.
20
- He slept at 11 hrs. Yesterday, he slept from 22.0hrs to 11.0 hrs, with a duration
21
- of 765.0 minutes and 2 interruptions. The day before yesterday, he slept from
22
- 23.0 hrs to 8.0 hrs, with a duration of 527.0 minutes and 4 interruptions.
 
 
 
 
 
 
 
 
23
  pipeline_tag: text-classification
24
  inference: false
25
  base_model: sentence-transformers/paraphrase-mpnet-base-v2
@@ -35,7 +43,7 @@ model-index:
35
  split: test
36
  metrics:
37
  - type: accuracy
38
- value: 0.3333333333333333
39
  name: Accuracy
40
  ---
41
 
@@ -71,7 +79,7 @@ The model has been trained using an efficient few-shot learning technique that i
71
  ### Metrics
72
  | Label | Accuracy |
73
  |:--------|:---------|
74
- | **all** | 0.3333 |
75
 
76
  ## Uses
77
 
@@ -91,7 +99,7 @@ from setfit import SetFitModel
91
  # Download from the 🤗 Hub
92
  model = SetFitModel.from_pretrained("naushin/setfit-ethos-multilabel-example")
93
  # Run inference
94
- preds = model("He is Male, his heart rate is 64, he walks 10000 steps daily, and is Normal. He slept at 11 hrs. Yesterday, he slept from 22.0hrs to 11.0 hrs, with a duration of 765.0 minutes and 2 interruptions. The day before yesterday, he slept from 23.0 hrs to 8.0 hrs, with a duration of 527.0 minutes and 4 interruptions.")
95
  ```
96
 
97
  <!--
@@ -144,9 +152,9 @@ preds = model("He is Male, his heart rate is 64, he walks 10000 steps daily, and
144
  - load_best_model_at_end: False
145
 
146
  ### Training Results
147
- | Epoch | Step | Training Loss | Validation Loss |
148
- |:-----:|:----:|:-------------:|:---------------:|
149
- | 0.1 | 1 | 0.4129 | - |
150
 
151
  ### Framework Versions
152
  - Python: 3.10.12
 
8
  metrics:
9
  - accuracy
10
  widget:
11
+ - text: She is Female, her heart rate is 63, she walks 4000 steps daily and is Underweight.
12
+ She slept at 2 hrs. Yesterday, she slept from 1 hrs to 7 hrs, with a duration
13
+ of 360 minutes and 5 interruptions. The day before yesterday, she slept from 23
14
+ hrs to 7 hrs, with a duration of 420 minutes and 3 interruptions.
15
+ - text: She is Female, her heart rate is 70, she walks 8000 steps daily and is Normal.
16
+ She slept at 22 hrs. Yesterday, she slept from 23 hrs to 7 hrs, with a duration
17
+ of 400 minutes and 2 interruptions. The day before yesterday, she slept from 22
18
+ hrs to 6 hrs, with a duration of 430 minutes and 2 interruptions.
19
+ - text: He is Male, his heart rate is 70, he walks 2400 steps daily, and is Underweight.
20
+ He slept at 0 hrs. Yesterday, he slept from 2hrs to 7 hrs, with a duration of
21
+ 280 minutes and 4 interruptions. The day before yesterday, he slept from 2 hrs
22
+ to 8 hrs, with a duration of 340 minutes and 4 interruptions.
23
+ - text: She is Female, her heart rate is 68, she walks 11,000 steps daily and is Normal.
24
+ She slept at 1 hrs. Yesterday, she slept from 1 hrs to 9 hrs, with a duration
25
+ of 495 minutes and 0 interruptions. The day before yesterday, she slept from 1
26
+ hrs to 10 hrs, with a duration of 540 minutes and 1 interruptions.
27
+ - text: He is Male, his heart rate is 67, he walks 12000 steps daily, and is Normal.
28
+ He slept at 3 hrs. Yesterday, he slept from 4hrs to 11 hrs, with a duration of
29
+ 420 minutes and 3 interruptions. The day before yesterday, he slept from 3 hrs
30
+ to 5 hrs, with a duration of 150 minutes and 0 interruptions.
31
  pipeline_tag: text-classification
32
  inference: false
33
  base_model: sentence-transformers/paraphrase-mpnet-base-v2
 
43
  split: test
44
  metrics:
45
  - type: accuracy
46
+ value: 0.0
47
  name: Accuracy
48
  ---
49
 
 
79
  ### Metrics
80
  | Label | Accuracy |
81
  |:--------|:---------|
82
+ | **all** | 0.0 |
83
 
84
  ## Uses
85
 
 
99
  # Download from the 🤗 Hub
100
  model = SetFitModel.from_pretrained("naushin/setfit-ethos-multilabel-example")
101
  # Run inference
102
+ preds = model("He is Male, his heart rate is 67, he walks 12000 steps daily, and is Normal. He slept at 3 hrs. Yesterday, he slept from 4hrs to 11 hrs, with a duration of 420 minutes and 3 interruptions. The day before yesterday, he slept from 3 hrs to 5 hrs, with a duration of 150 minutes and 0 interruptions.")
103
  ```
104
 
105
  <!--
 
152
  - load_best_model_at_end: False
153
 
154
  ### Training Results
155
+ | Epoch | Step | Training Loss | Validation Loss |
156
+ |:------:|:----:|:-------------:|:---------------:|
157
+ | 0.0667 | 1 | 0.421 | - |
158
 
159
  ### Framework Versions
160
  - Python: 3.10.12
config_setfit.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "normalize_embeddings": false,
3
- "labels": null
4
  }
 
1
  {
2
+ "labels": null,
3
+ "normalize_embeddings": false
4
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72ca11176130d67d0846a7ac7b816e87c8746228f049f51ff23bf89bbe676444
3
  size 437967672
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:670797c939640a61f251901631eef747ef0a8846b48e27cd9ee308bcf3209a34
3
  size 437967672
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:80f9a59e0587f17932f8129ce57738cb2e436b747b44a46b163a8bd2c7f7e3c9
3
  size 20436
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e07d4db9bf4602cd900a953631193fad37e32335ff96347071599d9217546e6
3
  size 20436