Add SetFit model
Browse files- README.md +15 -13
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -9,10 +9,11 @@ base_model: BAAI/bge-small-en-v1.5
|
|
9 |
metrics:
|
10 |
- accuracy
|
11 |
widget:
|
12 |
-
- text:
|
13 |
-
- text:
|
14 |
-
- text:
|
15 |
-
- text:
|
|
|
16 |
pipeline_tag: text-classification
|
17 |
inference: true
|
18 |
---
|
@@ -45,10 +46,10 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
45 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
46 |
|
47 |
### Model Labels
|
48 |
-
| Label | Examples
|
49 |
-
|
50 |
-
|
|
51 |
-
|
|
52 |
|
53 |
## Uses
|
54 |
|
@@ -68,7 +69,7 @@ from setfit import SetFitModel
|
|
68 |
# Download from the 🤗 Hub
|
69 |
model = SetFitModel.from_pretrained("abehandler/setfit")
|
70 |
# Run inference
|
71 |
-
preds = model("
|
72 |
```
|
73 |
|
74 |
<!--
|
@@ -100,12 +101,12 @@ preds = model("board size affects ceo pay")
|
|
100 |
### Training Set Metrics
|
101 |
| Training set | Min | Median | Max |
|
102 |
|:-------------|:----|:-------|:----|
|
103 |
-
| Word count |
|
104 |
|
105 |
| Label | Training Sample Count |
|
106 |
|:------|:----------------------|
|
107 |
-
| 0 |
|
108 |
-
| 1 |
|
109 |
|
110 |
### Training Hyperparameters
|
111 |
- batch_size: (32, 32)
|
@@ -127,7 +128,8 @@ preds = model("board size affects ceo pay")
|
|
127 |
### Training Results
|
128 |
| Epoch | Step | Training Loss | Validation Loss |
|
129 |
|:-----:|:----:|:-------------:|:---------------:|
|
130 |
-
|
|
|
|
131 |
|
132 |
### Framework Versions
|
133 |
- Python: 3.10.12
|
|
|
9 |
metrics:
|
10 |
- accuracy
|
11 |
widget:
|
12 |
+
- text: variables affects cost of debt
|
13 |
+
- text: variables affects cost of debt
|
14 |
+
- text: personal attitude affects entrepreneurship intention
|
15 |
+
- text: positive emotionality affects enterprise systems success
|
16 |
+
- text: video affects firm performance
|
17 |
pipeline_tag: text-classification
|
18 |
inference: true
|
19 |
---
|
|
|
46 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
47 |
|
48 |
### Model Labels
|
49 |
+
| Label | Examples |
|
50 |
+
|:------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
51 |
+
| 1 | <ul><li>'ease of use affects enterprise systems success'</li><li>'acquirer growth affects m & a success'</li><li>'high yield affects cost of debt'</li></ul> |
|
52 |
+
| 0 | <ul><li>'option sales taxes and fiscal affects ceo pay'</li><li>'variables affects cost of debt'</li><li>'market orientation affects entrepreneurship intention'</li></ul> |
|
53 |
|
54 |
## Uses
|
55 |
|
|
|
69 |
# Download from the 🤗 Hub
|
70 |
model = SetFitModel.from_pretrained("abehandler/setfit")
|
71 |
# Run inference
|
72 |
+
preds = model("variables affects cost of debt")
|
73 |
```
|
74 |
|
75 |
<!--
|
|
|
101 |
### Training Set Metrics
|
102 |
| Training set | Min | Median | Max |
|
103 |
|:-------------|:----|:-------|:----|
|
104 |
+
| Word count | 4 | 5.5 | 8 |
|
105 |
|
106 |
| Label | Training Sample Count |
|
107 |
|:------|:----------------------|
|
108 |
+
| 0 | 7 |
|
109 |
+
| 1 | 9 |
|
110 |
|
111 |
### Training Hyperparameters
|
112 |
- batch_size: (32, 32)
|
|
|
128 |
### Training Results
|
129 |
| Epoch | Step | Training Loss | Validation Loss |
|
130 |
|:-----:|:----:|:-------------:|:---------------:|
|
131 |
+
| 0.2 | 1 | 0.2372 | - |
|
132 |
+
| 10.0 | 50 | 0.1078 | - |
|
133 |
|
134 |
### Framework Versions
|
135 |
- 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 133462128
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:daa3dd0b9c1cf8067cc8f93083ca7cd9835014a42bc3fd1b611993a2c01c765f
|
3 |
size 133462128
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 3935
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1eb400717286ef93943eaa198b1c83035c14ebee8811b10561ab7c05d07babca
|
3 |
size 3935
|