Add SetFit model
Browse files- README.md +15 -25
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -32,7 +32,7 @@ model-index:
|
|
32 |
split: test
|
33 |
metrics:
|
34 |
- type: accuracy
|
35 |
-
value: 0.
|
36 |
name: Accuracy
|
37 |
---
|
38 |
|
@@ -64,17 +64,17 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
64 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
65 |
|
66 |
### Model Labels
|
67 |
-
| Label | Examples
|
68 |
-
|
69 |
-
|
|
70 |
-
|
|
71 |
|
72 |
## Evaluation
|
73 |
|
74 |
### Metrics
|
75 |
| Label | Accuracy |
|
76 |
|:--------|:---------|
|
77 |
-
| **all** | 0.
|
78 |
|
79 |
## Uses
|
80 |
|
@@ -92,7 +92,7 @@ Then you can load this model and run inference.
|
|
92 |
from setfit import SetFitModel
|
93 |
|
94 |
# Download from the 🤗 Hub
|
95 |
-
model = SetFitModel.from_pretrained("mitra-mir/setfit-model-ESG-
|
96 |
# Run inference
|
97 |
preds = model("and importance of the climate crisis requires everyone to play their part.")
|
98 |
```
|
@@ -126,12 +126,12 @@ preds = model("and importance of the climate crisis requires everyone to play th
|
|
126 |
### Training Set Metrics
|
127 |
| Training set | Min | Median | Max |
|
128 |
|:-------------|:----|:--------|:----|
|
129 |
-
| Word count |
|
130 |
|
131 |
| Label | Training Sample Count |
|
132 |
|:------|:----------------------|
|
133 |
-
| 0.0 |
|
134 |
-
| 1.0 |
|
135 |
|
136 |
### Training Hyperparameters
|
137 |
- batch_size: (16, 16)
|
@@ -155,26 +155,16 @@ preds = model("and importance of the climate crisis requires everyone to play th
|
|
155 |
### Training Results
|
156 |
| Epoch | Step | Training Loss | Validation Loss |
|
157 |
|:------:|:----:|:-------------:|:---------------:|
|
158 |
-
| 0.0020 | 1 | 0.
|
159 |
-
| 0.1004 | 50 | 0.
|
160 |
-
| 0.2008 | 100 | 0.
|
161 |
-
| 0.3012 | 150 | 0.
|
162 |
-
| 0.4016 | 200 | 0.
|
163 |
| 0.5020 | 250 | 0.0002 | - |
|
164 |
| 0.6024 | 300 | 0.0002 | - |
|
165 |
| 0.7028 | 350 | 0.0001 | - |
|
166 |
| 0.8032 | 400 | 0.0001 | - |
|
167 |
| 0.9036 | 450 | 0.0001 | - |
|
168 |
-
| 0.0020 | 1 | 0.25 | - |
|
169 |
-
| 0.1004 | 50 | 0.349 | - |
|
170 |
-
| 0.2008 | 100 | 0.047 | - |
|
171 |
-
| 0.3012 | 150 | 0.0172 | - |
|
172 |
-
| 0.4016 | 200 | 0.0023 | - |
|
173 |
-
| 0.5020 | 250 | 0.0002 | - |
|
174 |
-
| 0.6024 | 300 | 0.0002 | - |
|
175 |
-
| 0.7028 | 350 | 0.0003 | - |
|
176 |
-
| 0.8032 | 400 | 0.0001 | - |
|
177 |
-
| 0.9036 | 450 | 0.0001 | - |
|
178 |
|
179 |
### Framework Versions
|
180 |
- Python: 3.11.6
|
|
|
32 |
split: test
|
33 |
metrics:
|
34 |
- type: accuracy
|
35 |
+
value: 0.7909319899244333
|
36 |
name: Accuracy
|
37 |
---
|
38 |
|
|
|
64 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
65 |
|
66 |
### Model Labels
|
67 |
+
| Label | Examples |
|
68 |
+
|:------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
69 |
+
| 0.0 | <ul><li>'The concentration of our sales in our fourth fiscal quarter increases this impact as the revenue impact of most fourth fiscal quarter subscription sales will not be realized until the following fiscal year.'</li><li>'The deposit insurance fund of the FDIC insures deposit accounts in HomeTrust Bank up to 250,000 per separately insured deposit ownership right or category.'</li><li>'On 19 October 2020 the Company entered into a 25 million revolving credit facility agreement with State Street Bank International GmbH.'</li></ul> |
|
70 |
+
| 1.0 | <ul><li>'The IH Laboratory supports our field organization and offers our customers a wide array of sampling and analysis protocols based on Occupational Safety and Health Administration (OSHA) and National Institute for Occupational Safety and Health methodologies.'</li><li>'We partnered with the Fair Wage Network to increase our understanding of the different definitions of fair wages and to benchmark against their extensive fair and living wage database.'</li><li>'Strategy is to ensure all our employees worldwide earn at least a fair wage.'</li></ul> |
|
71 |
|
72 |
## Evaluation
|
73 |
|
74 |
### Metrics
|
75 |
| Label | Accuracy |
|
76 |
|:--------|:---------|
|
77 |
+
| **all** | 0.7909 |
|
78 |
|
79 |
## Uses
|
80 |
|
|
|
92 |
from setfit import SetFitModel
|
93 |
|
94 |
# Download from the 🤗 Hub
|
95 |
+
model = SetFitModel.from_pretrained("mitra-mir/setfit-model-ESG-social")
|
96 |
# Run inference
|
97 |
preds = model("and importance of the climate crisis requires everyone to play their part.")
|
98 |
```
|
|
|
126 |
### Training Set Metrics
|
127 |
| Training set | Min | Median | Max |
|
128 |
|:-------------|:----|:--------|:----|
|
129 |
+
| Word count | 4 | 24.5578 | 112 |
|
130 |
|
131 |
| Label | Training Sample Count |
|
132 |
|:------|:----------------------|
|
133 |
+
| 0.0 | 147 |
|
134 |
+
| 1.0 | 52 |
|
135 |
|
136 |
### Training Hyperparameters
|
137 |
- batch_size: (16, 16)
|
|
|
155 |
### Training Results
|
156 |
| Epoch | Step | Training Loss | Validation Loss |
|
157 |
|:------:|:----:|:-------------:|:---------------:|
|
158 |
+
| 0.0020 | 1 | 0.4072 | - |
|
159 |
+
| 0.1004 | 50 | 0.2038 | - |
|
160 |
+
| 0.2008 | 100 | 0.0155 | - |
|
161 |
+
| 0.3012 | 150 | 0.0003 | - |
|
162 |
+
| 0.4016 | 200 | 0.0002 | - |
|
163 |
| 0.5020 | 250 | 0.0002 | - |
|
164 |
| 0.6024 | 300 | 0.0002 | - |
|
165 |
| 0.7028 | 350 | 0.0001 | - |
|
166 |
| 0.8032 | 400 | 0.0001 | - |
|
167 |
| 0.9036 | 450 | 0.0001 | - |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
### Framework Versions
|
170 |
- Python: 3.11.6
|
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:50da4ffd74a3288675a738297bf886452f4464cc3c09aa0f31dff93dac0c676e
|
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 6959
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7907f3692e3f72319578bb211d48e9bf90fbfe22333a29766170eed685fe548b
|
3 |
size 6959
|