Kevinger commited on
Commit
2477e3e
·
verified ·
1 Parent(s): 821b270

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +144 -139
  2. model.safetensors +1 -1
  3. 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: 'WESTFIELD - The St. Mary’s High School boys basketball team may have just
47
- found their secret weapon or at least one of them.
48
-
49
-
50
- St. Mary’s guard-forward Patryk Lech scored 14 points, including three 3-pointers
51
- to help the Saints stop a two-game slide and turn back Pioneer Valley Christian
52
- Academy, 55-32, Wednesday night at Westfield Intermediate School.'
53
- - text: 'WE’VE SEEN ACROSS OUR REGION. ONE AMBULANCE WE HAVE PROBABLY SIX VICTIMS
54
- DOWN HERE. THE 911 CALLS COMING IN AROUND 220 THIS MORNING. BLACK SUV CAME UP,
55
- FIRED ROUNDS, TOOK OFF A SHOOTING ON ESSEX STREET WHERE PEOPLE WERE CELEBRATING.
56
- A FRIEND HEADING OFF TO COLLEGE. NOW, THIS STUFF IS UNFORTUNATE. I DIDN’T EXPECT
57
- IT TO HAPPEN. I NEVER THOUGHT I WOULD GET THAT CALL. HIS BROTHER SAYING ABRAHAM
58
- DIAZ IS ONE OF THE SEVEN PEOPLE SHOT. THE 25 YEAR OLD DIDN’T SURVIVE. HE’LL GO
59
- TO THINGS LIKE THIS TO SHOW SUPPORT AND LOVE AND THAT’S WHAT THAT’S WHAT HE’S
60
- ALL ABOUT. THE SIX OTHERS WERE RUSHED TO THE HOSPITAL. TWO IN CRITICAL CONDITION.
61
- THERE’S MULTIPLE PEOPLE THAT WE KNOW PERSONALLY THAT WE HANG OUT WITH AND LAUGH
62
- WITH THAT ARE RIGHT NOW IN THE HOSPITAL FIGHTING FOR THEIR LIVES. NOW INVESTIGATORS
63
- ARE WORKING TO TRACK DOWN WHOEVER PULLED THE TRIGGER, SAYING VIOLENCE LIKE THIS
64
- ISN’T UNIQUE TO. LYNN. IT’S NOT ONLY A PROBLEM IN OUR COMMUNITY, BUT IT’S BEEN
65
- A PROBLEM IN MANY URBAN COMMUNITIES LAST WEEKEND IN BOSTON, TWO LARGE BRAWLS INVOLVING
66
- TEENS AND KIDS AND A SHOOTING AT THE CARIBBEAN FESTIVAL THAT LEFT EIGHT HURT ENDED
67
- WITH 17 PEOPLE ARRESTED, 14 OF WHOM ARE MINORS. NOW, AS LYNN POLICE INVESTIGATE,
68
- SOME WHO LIVE HERE ARE QUESTIONING HOW SAFE ARE OUR COMMUNITIES. I HAVE A TWO
69
- AND A HALF YEAR OLD BROTHER. I’M STARTING TO THINK LIKE AS A IS THIS A GOOD PLACE
70
- TO RAISE HIM HERE? YOU KNOW, ITS GETTING A LITTLE VIOLENT. LYNN POLICE SAY THEY
71
- BELIEVE THIS SHOOTING WAS TARGETED. THEY SAY IT’LL TAKE THE WORK OF POLICE AS
72
- WELL AS THE HELP OF THE COMMUNITY TO SOLVE THI
73
-
74
-
75
- Advertisement 2 of 7 victims in Lynn shooting now dead, district attorney says
76
- Share Copy Link Copy
77
-
78
-
79
- Another man is dead in connection with a shooting that happened early Saturday
80
- morning in Lynn, Massachusetts.Authorities announced Sunday that 21-year-old Jandriel
81
- Heredia, of Revere, died of the injuries he suffered in the Essex Street shooting
82
- that had already claimed the life of 25-year-old Abraham Diaz.The shooting, which
83
- injured a total of seven people, was first reported to Lynn police at about 2:20
84
- a.m. Saturday.The Essex County District Attorney''s Office said that as of Sunday
85
- night, there is no new information as to the condition of the five other shooting
86
- victims. "This is a terrible act of violence," Essex County District Attorney
87
- Paul Tucker said. "We do not believe this was a random act of violence."Tucker
88
- said shots were fired from a vehicle."They were having some type of a social gathering,"
89
- the district attorney said. "This violence was put upon them in a terrible way.""The
90
- people who did this are not in custody, and we want to make sure we do get them
91
- into custody," Tucker added. "I just can''t believe it happened," said Brian Diaz,
92
- brother of Abraham Diaz. "I''m still trying to process it.""My brother was a good
93
- kid," Brian Diaz added. "He was just like me, giving back to kids, looking out
94
- for kids, and ... just wanted to make sure everyone was all right."Brian said
95
- Abraham was from Lynn. He said his brother was with a group celebrating a friend
96
- who was heading off to college. "This is absolutely outrageous to have this level
97
- of violence happen on our streets and in our neighborhood," Lynn Mayor Jared Nicholson
98
- said at a news conference on Saturday morning. "It''s horrifying.""What everyone
99
- experienced in this street and neighborhood, shouldn''t happen," Nicholson said.Several
100
- multi-unit residential homes were located in the area of the shooting. "We believe
101
- this incident was a targeted attack," Lynn police Chief Christopher Reddy said.
102
- "We are committed to holding those accountable responsible for this senseless
103
- act of violence."On Sunday, Tucker and Reddy said that a man was fatally shot
104
- on Lincoln Street shortly after 11 p.m. Saturday. Authorities said that based
105
- on their initial investigation, the shooting is not believed to be a random act
106
- of violence.Anyone with any information about the shootings is asked to contact
107
- Lynn police at 781-595-2000 or by texting a tip to 847411 (TIP411).The shootings
108
- were being investigated by the Essex County District Attorney’s Office State Police
109
- Detective Unit and detectives from the Lynn Police Department. Previous coverage:'
110
- - text: 'Joan Acocella, a cultural critic whose elegant, erudite essays about dance
111
- and literature appeared in The New Yorker and The New York Review of Books for
112
- more than four decades, died on Sunday at her home in Manhattan. She was 78.
113
-
114
-
115
- Her son, Bartholomew Acocella, said the cause was cancer.
116
-
117
-
118
- Ms. Acocella (pronounced ack-ah-CHELL-uh) wrote deeply about dancers and choreographers,
119
- including Mikhail Baryshnikov, Suzanne Farrell and George Balanchine. She scrutinized
120
- the vicissitudes of the New York City Ballet as well as the feats of the ballroom-dancing
121
- pros and celebrity oafs of the popular TV series “Dancing With the Stars.”
122
-
123
-
124
- She was The New Yorker’s dance critic from 1998 to 2019 and freelanced for The
125
- Review for 33 years. Her final articles for The Review were a two-part commentary
126
- in May on the biography “Mr. B: George Balanchine’s 20th Century,” by Jennifer
127
- Homans, her successor as The New Yorker’s dance critic.
128
-
129
-
130
- “What she wrote for us,” Emily Greenhouse, the editor of The Review, said in an
131
- email, “was often mischievous and always delicious on crotch shots and cuss
132
- words, on Neapolitan hand gestures and Isadora Duncans emphasis on the solar
133
- plexus.”'
134
- - text: '“That’s what will determine the winners and losers as we get through the
135
- rest of the holiday season,” Matthew Shay, chief executive of the National Retail
136
- Federation, a trade group, said on a recent conference call. The N.R.F. kept its
137
- forecast that holiday sales from Nov. 1 to Dec. 31 would grow 3 to 4 percent
138
- this year.
139
-
140
-
141
- That forecast isn’t adjusted for inflation. Neither are the early readings of
142
- sales over the weekend. Mastercard, for example, said sales both in stores and
143
- online rose 2.5 percent on Nov. 24, from a year earlier. But with consumer goods
144
- excluding food and fuel rising at an annual rate of around 4 percent, that
145
- suggests that retailers aren’t necessarily moving more merchandise.
146
-
147
-
148
- “We think sales were not strong; they were so-so, to the point of being mediocre,”
149
- said Craig Johnson, the founder of the retail consultancy Customer Growth Partners.
150
- His firm estimated that sales for the four-day period starting on Black Friday
151
- and ending on Cyber Monday was $94.2 billion, up about 2.5 percent from last year.
152
- Like Mastercard’s estimate, the retail consultancy forecast that — adjusted for
153
- inflation — sales slipped slightly, Mr. Johnson said.
154
-
155
-
156
- Some large retailers seem to be prepared for the slowdown in demand. Companies
157
- like Target and Macy’s have reported that they’ve cut inventory levels in recent
158
- quarters, and that may put them in a better position to profit even if demand
159
- is weaker, according to Edward Yruma, an analyst at the investment bank Piper
160
- Sandler.
161
-
162
-
163
-
164
-
165
- If stores have too much inventory on hand, they may have to cut prices more than
166
- expected, which would erode their profits.
167
-
168
-
169
- “Really for the first time in four quarters, we are seeing retailers get inventories
170
- better aligned with sales,” Mr. Yruma said. “That’s allowing them to have on-plan
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.5138755980861244
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.5139 |
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("WESTFIELD - The St. Mary’s High School boys basketball team may have just found their secret weapon or at least one of them.
 
 
 
 
 
 
244
 
245
- St. Mary’s guard-forward Patryk Lech scored 14 points, including three 3-pointers to help the Saints stop a two-game slide and turn back Pioneer Valley Christian Academy, 55-32, Wednesday night at Westfield Intermediate School.")
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 | 22 | 396.7188 | 2161 |
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.1242 | - |
301
- | 0.1562 | 50 | 0.1143 | - |
302
- | 0.3125 | 100 | 0.1023 | - |
303
- | 0.4688 | 150 | 0.0108 | - |
304
- | 0.625 | 200 | 0.0021 | - |
305
- | 0.7812 | 250 | 0.0005 | - |
306
- | 0.9375 | 300 | 0.001 | - |
307
 
308
  ### Framework Versions
309
  - Python: 3.10.12
310
  - SetFit: 1.0.3
311
- - Sentence Transformers: 2.3.0
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 cockatoosrenowned 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 cant 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:3afe5752c72c53c1c82d1aed70e1968c26fc67c22c817ff832e78f33189e6e30
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:d41dac8b1223de9ecddb871fe802f1bb407da37f4b164695964367a4656b52f0
3
  size 52836
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:297f577f81bba95cf72a9ffeae29e359d5eb8845da243d3db0be90984475e453
3
  size 52836