Add SetFit model
Browse files- README.md +144 -139
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
|
@@ -43,132 +43,131 @@ widget:
|
|
| 43 |
people that we might think are not the right character to be here and they have
|
| 44 |
done things in their past,” Kraft said. “That’s the only time we’ve really weighed
|
| 45 |
in.”'
|
| 46 |
-
- text: '
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
is
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
promotions.”'
|
| 172 |
pipeline_tag: text-classification
|
| 173 |
inference: false
|
| 174 |
base_model: sentence-transformers/paraphrase-mpnet-base-v2
|
|
@@ -184,7 +183,7 @@ model-index:
|
|
| 184 |
split: test
|
| 185 |
metrics:
|
| 186 |
- type: accuracy
|
| 187 |
-
value: 0.
|
| 188 |
name: Accuracy
|
| 189 |
---
|
| 190 |
|
|
@@ -220,7 +219,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 220 |
### Metrics
|
| 221 |
| Label | Accuracy |
|
| 222 |
|:--------|:---------|
|
| 223 |
-
| **all** | 0.
|
| 224 |
|
| 225 |
## Uses
|
| 226 |
|
|
@@ -240,9 +239,15 @@ from setfit import SetFitModel
|
|
| 240 |
# Download from the 🤗 Hub
|
| 241 |
model = SetFitModel.from_pretrained("Kevinger/setfit-hub-multilabel-example")
|
| 242 |
# Run inference
|
| 243 |
-
preds = model("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
|
| 245 |
-
|
| 246 |
```
|
| 247 |
|
| 248 |
<!--
|
|
@@ -274,7 +279,7 @@ St. Mary’s guard-forward Patryk Lech scored 14 points, including three 3-point
|
|
| 274 |
### Training Set Metrics
|
| 275 |
| Training set | Min | Median | Max |
|
| 276 |
|:-------------|:----|:---------|:-----|
|
| 277 |
-
| Word count |
|
| 278 |
|
| 279 |
### Training Hyperparameters
|
| 280 |
- batch_size: (8, 8)
|
|
@@ -297,18 +302,18 @@ St. Mary’s guard-forward Patryk Lech scored 14 points, including three 3-point
|
|
| 297 |
### Training Results
|
| 298 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 299 |
|:------:|:----:|:-------------:|:---------------:|
|
| 300 |
-
| 0.0031 | 1 | 0.
|
| 301 |
-
| 0.1562 | 50 | 0.
|
| 302 |
-
| 0.3125 | 100 | 0.
|
| 303 |
-
| 0.4688 | 150 | 0.
|
| 304 |
-
| 0.625 | 200 | 0.
|
| 305 |
-
| 0.7812 | 250 | 0.
|
| 306 |
-
| 0.9375 | 300 | 0.
|
| 307 |
|
| 308 |
### Framework Versions
|
| 309 |
- Python: 3.10.12
|
| 310 |
- SetFit: 1.0.3
|
| 311 |
-
- Sentence Transformers: 2.3.
|
| 312 |
- Transformers: 4.35.2
|
| 313 |
- PyTorch: 2.1.0+cu121
|
| 314 |
- Datasets: 2.16.1
|
|
|
|
| 43 |
people that we might think are not the right character to be here and they have
|
| 44 |
done things in their past,” Kraft said. “That’s the only time we’ve really weighed
|
| 45 |
in.”'
|
| 46 |
+
- text: 'My mom loved Christmas so much, she would sometimes leave the tree up until
|
| 47 |
+
April.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
She dyed a sheet blue for the sky behind the crèche and made a star of tin foil.
|
| 51 |
+
The cradle would stay empty until Christmas morning; when we tumbled downstairs,
|
| 52 |
+
the baby would be in his place, and the house would smell of roasting turkey.
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Mom always took it personally if you didn’t wear red or green on Christmas, and
|
| 56 |
+
she signed all the presents “Love, Baby Jesus,” “Love, Virgin Mary” or “Love,
|
| 57 |
+
St. Joseph.”
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
(My brother Kevin was always upset that Joseph got short shrift, disappearing
|
| 61 |
+
from the Bible; why wasn’t he around to boast about Jesus turning water into wine?)
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
We went to midnight Mass back then, and it was magical, despite some boys wearing
|
| 65 |
+
Washington Redskins bathrobes as they carried presents down the aisle for Baby
|
| 66 |
+
Jesus.'
|
| 67 |
+
- text: 'It is the first time that this food-dunking behavior has been documented
|
| 68 |
+
in parrots — it has also been observed in grackles and crows. And it was a serendipitous
|
| 69 |
+
discovery for the lab, which typically relies on meticulously planned experiments
|
| 70 |
+
to test the cockatoos’ renowned problem-solving skills. “But sometimes we get
|
| 71 |
+
gifted with accidental things that just happen,” Dr. Auersperg said.
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
Goffin’s cockatoos are known for their ability to use and manipulate objects.
|
| 75 |
+
In earlier studies, Dr. Auersperg and her colleagues found, for instance, that
|
| 76 |
+
the birds could open locked puzzle boxes and make their own tools to obtain out-of-reach
|
| 77 |
+
food.
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
But the researchers at the Goffin Lab did not typically pay close attention to
|
| 81 |
+
the birds’ behavior at lunch, said Jeroen Zewald, a doctoral student in the lab
|
| 82 |
+
and another author of the study. Until, one day last summer, they noticed something
|
| 83 |
+
curious. An affectionate male bird named Pipin — “the gentleman of the group,”
|
| 84 |
+
Mr. Zewald said — was dunking his food into the tub of water typically used for
|
| 85 |
+
drinking and bathing. Two other birds in the lab, Kiwi and Muki, turned out to
|
| 86 |
+
be dunkers, too, the researchers noticed.
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
To study the behavior more systematically, Mr. Zewald and Dr. Auersperg spent
|
| 90 |
+
12 days observing the birds’ lunchtime behaviors. In total, seven of the 18 birds
|
| 91 |
+
were observed dunking food at least once, they found. (Still, Pipin, Kiwi and
|
| 92 |
+
Muki were the undisputed dunkmasters, racking up many more “dunking events” than
|
| 93 |
+
the other birds.)'
|
| 94 |
+
- text: 'SAN FRANCISCO — Celtics fans held their breath midway through Tuesday’s game
|
| 95 |
+
against the Warriors. C’s star Jayson Tatum appeared to roll his left ankle as
|
| 96 |
+
he hobbled back to the locker room with 7:45 left in the first quarter.
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
On the bright side, Tatum retreated to the Celtics locker room under his own power.
|
| 100 |
+
Tatum appeared to step on the Warriors’ Brandin Podziemski shoe midway through
|
| 101 |
+
play. Fortunately, it didn’t look like there was too much force on the play as
|
| 102 |
+
Tatum went to the locker room after twisting his ankle. Here’s a look at the play.
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
BET ANYTHING GET $250 BONUS ESPN BET CLAIM OFFER MASS 21+ and present in MA, NJ,
|
| 106 |
+
PA, VA, MD, WV, TN, LA, KS, KY, CO, AZ, IL, IA, IN, OH, MI. Gambling problem?
|
| 107 |
+
Call 1-800-Gambler.
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
Up to that point, Tatum had put up four points, two rebounds and one assist on
|
| 111 |
+
2-for-3 shooting in four minutes.
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
The injury didn’t appear serious initially, and that was indeed the case. Tatum
|
| 115 |
+
returned to the Celtics bench with 2:19 left in the first quarter, walking under
|
| 116 |
+
his own power and without a limp. Tatum made his return to the game to start the
|
| 117 |
+
second quarter.
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
This story will be updated.'
|
| 121 |
+
- text: 'A new episode of “Love After Lockup” will air on Friday, Jan. 12 on WE Tv
|
| 122 |
+
at 9 p.m. ET.
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
The new episode can also be streamed live on Philo, DirecTV Stream and fuboTV.
|
| 126 |
+
All platforms offer a free trial for those interested in signing up for an account.
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
“Love After Lockup” is said to be a spin off from WE Tv’s “Love During Lockup”
|
| 130 |
+
as couples navigate their love lives through prison. The show will show inmates
|
| 131 |
+
struggle to keep their love through video dates, letters and phone calls. But
|
| 132 |
+
there’s no telling who can and can’t handle the cell wall that separates the couples.
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
In the new episode, “Tayler confronts Chance; Melissa reveals secret surgery plans.
|
| 136 |
+
Tensions flare as Kerok seeks Bri’s family’s acceptance. Shavel’s shower explodes
|
| 137 |
+
as the mothers-in-law face off again. Mike comes clean; Blaine’s confession sends
|
| 138 |
+
Lindsay spiraling.”
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
How can I watch if I don’t have cable?
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
If you don’t have access to cable television, you can stream “Love After Lockup”
|
| 145 |
+
on streaming platforms Philo, DirecTV Stream and fuboTV.
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
What is Philo?
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
Philo is an over-the-top internet live TV streaming service that offers 60+ entertainment
|
| 152 |
+
and lifestyle channels for the budget-friendly price of $25/month.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
If you purchase a product or register for an account through one of the links
|
| 156 |
+
on our site, we may receive compensation.
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
What is FuboTV?
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
FuboTV is an over-the-top internet live TV streaming service that offers more
|
| 163 |
+
than 100 channels, such as sports, news, entertainment and local channels.
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
What is DirecTV Stream?
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
The streaming platform offers a plethora of content including streaming the best
|
| 170 |
+
of live and On Demand, starting with more than 75 live TV channels.'
|
|
|
|
| 171 |
pipeline_tag: text-classification
|
| 172 |
inference: false
|
| 173 |
base_model: sentence-transformers/paraphrase-mpnet-base-v2
|
|
|
|
| 183 |
split: test
|
| 184 |
metrics:
|
| 185 |
- type: accuracy
|
| 186 |
+
value: 0.5086206896551724
|
| 187 |
name: Accuracy
|
| 188 |
---
|
| 189 |
|
|
|
|
| 219 |
### Metrics
|
| 220 |
| Label | Accuracy |
|
| 221 |
|:--------|:---------|
|
| 222 |
+
| **all** | 0.5086 |
|
| 223 |
|
| 224 |
## Uses
|
| 225 |
|
|
|
|
| 239 |
# Download from the 🤗 Hub
|
| 240 |
model = SetFitModel.from_pretrained("Kevinger/setfit-hub-multilabel-example")
|
| 241 |
# Run inference
|
| 242 |
+
preds = model("My mom loved Christmas so much, she would sometimes leave the tree up until April.
|
| 243 |
+
|
| 244 |
+
She dyed a sheet blue for the sky behind the crèche and made a star of tin foil. The cradle would stay empty until Christmas morning; when we tumbled downstairs, the baby would be in his place, and the house would smell of roasting turkey.
|
| 245 |
+
|
| 246 |
+
Mom always took it personally if you didn’t wear red or green on Christmas, and she signed all the presents “Love, Baby Jesus,” “Love, Virgin Mary” or “Love, St. Joseph.”
|
| 247 |
+
|
| 248 |
+
(My brother Kevin was always upset that Joseph got short shrift, disappearing from the Bible; why wasn’t he around to boast about Jesus turning water into wine?)
|
| 249 |
|
| 250 |
+
We went to midnight Mass back then, and it was magical, despite some boys wearing Washington Redskins bathrobes as they carried presents down the aisle for Baby Jesus.")
|
| 251 |
```
|
| 252 |
|
| 253 |
<!--
|
|
|
|
| 279 |
### Training Set Metrics
|
| 280 |
| Training set | Min | Median | Max |
|
| 281 |
|:-------------|:----|:---------|:-----|
|
| 282 |
+
| Word count | 12 | 526.0625 | 6633 |
|
| 283 |
|
| 284 |
### Training Hyperparameters
|
| 285 |
- batch_size: (8, 8)
|
|
|
|
| 302 |
### Training Results
|
| 303 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 304 |
|:------:|:----:|:-------------:|:---------------:|
|
| 305 |
+
| 0.0031 | 1 | 0.1691 | - |
|
| 306 |
+
| 0.1562 | 50 | 0.0678 | - |
|
| 307 |
+
| 0.3125 | 100 | 0.0949 | - |
|
| 308 |
+
| 0.4688 | 150 | 0.0083 | - |
|
| 309 |
+
| 0.625 | 200 | 0.0048 | - |
|
| 310 |
+
| 0.7812 | 250 | 0.0011 | - |
|
| 311 |
+
| 0.9375 | 300 | 0.0005 | - |
|
| 312 |
|
| 313 |
### Framework Versions
|
| 314 |
- Python: 3.10.12
|
| 315 |
- SetFit: 1.0.3
|
| 316 |
+
- Sentence Transformers: 2.3.1
|
| 317 |
- Transformers: 4.35.2
|
| 318 |
- PyTorch: 2.1.0+cu121
|
| 319 |
- Datasets: 2.16.1
|
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:506930c7af77a3464e5f47bd23f95df0b610bde65d593ed0953368f2837d4278
|
| 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 52836
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:297f577f81bba95cf72a9ffeae29e359d5eb8845da243d3db0be90984475e453
|
| 3 |
size 52836
|