Add SetFit model
Browse files- README.md +26 -18
- config_setfit.json +2 -2
- model.safetensors +1 -1
- 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
|
12 |
-
She slept at 2 hrs. Yesterday, she slept from
|
13 |
-
of
|
14 |
-
|
15 |
-
- text: She is Female, her heart rate is
|
16 |
-
She slept at
|
17 |
-
of
|
18 |
-
|
19 |
-
- text: He is Male, his heart rate is
|
20 |
-
He slept at
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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.
|
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
|
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
|
148 |
-
|
149 |
-
| 0.
|
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 |
-
"
|
3 |
-
"
|
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:
|
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:
|
3 |
size 20436
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e07d4db9bf4602cd900a953631193fad37e32335ff96347071599d9217546e6
|
3 |
size 20436
|