Downloads · 30 days
7
16% of all-time downloads
brendaac/setfit-prom-bac
setfit-prom-bac is a text classification model from brendaac. Use it when you need a label for a piece of text. It is set up for setfit.
This is a SetFit model that can be used for Text Classification. A LogisticRegression instance is used for classification.
Downloads · 30 days
7
16% of all-time downloads
All-time downloads
44
Public
Parameters
109M
876 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This is a SetFit model that can be used for Text Classification. A LogisticRegression instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| Appetite | <ul><li>'I consider myself to be a spiritual person'</li><li>'I would feel out of place eating fruits and vegetables at a party where everyone is eating other foods'</li><li>'I cook healthy foods'</li></ul> |
| Future | <ul><li>'I have the impression that the world tends toward collapse (apocalyptic end)'</li><li>'I feel anxious about death'</li><li>'I am uneasy about possible mishaps'</li></ul> |
| Concentration | <ul><li>'I have to push myself to get things done because I am tired'</li><li>'I have trouble remembering things because I am tired'</li><li>'I have enough energy to exercise strenuously'</li></ul> |
| Financial Worries | <ul><li>'Is your financial condition worsening as a result of your cancer diagnosis or treatment?'</li><li>'I am satisfied with my current financial situation'</li><li>'I am frustrated that I cannot work or contribute as much as I usually do'</li></ul> |
| Outcome | <ul><li>'I can make sense of my life'</li><li>'I have very clear goals and aims for my life'</li><li>'I am confident in this treatment'</li></ul> |
| Alcohol | <ul><li>'Alcohol makes it easier to talk to people'</li><li>'I drank because I had nothing to do'</li><li>'Drinking can be harmful to physical health'</li></ul> |
| Present | <ul><li>'My life is meaningful'</li><li>'I feel disconnected from others'</li><li>'I make time for family and friends'</li></ul> |
| Physical Function | <ul><li>'Are you able to climb up five steps?'</li><li>'Body pain impedes my exercise participation.'</li><li>'Are you able to use a hammer to pound a nail?'</li></ul> |
| Spiritual Concerns | <ul><li>'I ask people to pray for me'</li><li>'My illness has strengthened my faith or spiritual beliefs '</li><li>'My life lacks meaning and purpose '</li></ul> |
| Drugs | <ul><li>'I did risky things while using drugs'</li><li>'When I used drugs, I felt alone'</li><li>'I experienced cravings for pain medication'</li></ul> |
| Loss of Usual Health | <ul><li>'I can rely on my judgment to manage my symptoms, even when others disagree with me'</li><li>'I am unable to do the things I want to do because of my medical condition'</li><li>'My medical condition makes it hard for me to take care of myself'</li></ul> |
| Smoking | <ul><li>'I am tempted to smoke when I have arguments or conflicts with others'</li><li>"When I'm alone, a cigarette can help me pass the time"</li><li>'Smoking keeps me from overeating'</li></ul> |
| Treatment UX | <ul><li>'Overall, how bothered were you by the amount of time it took to take your cancer therapy?'</li><li>'I am angry about the lack of care coordination for my healthcare.'</li><li>"I feel like I don't have access to all the healthcare services I need"</li></ul> |
| Support | <ul><li>'Do you have someone to help with your daily chores if you are sick?'</li><li>'Someone to give you information to help you understand a situation'</li><li>'I have someone I trust to talk with about my problems'</li></ul> |
| Feeling Out of Control | <ul><li>'I have trouble doing all of my usual work (include work at home)'</li><li>'How much did pain interfere with your ability to participate in leisure activities?'</li><li>'How often was pain distressing to you?'</li></ul> |
| Sleep | <ul><li>'I felt tired'</li><li>'I tossed and turned at night'</li><li>'I was satisfied with my sleep'</li></ul> |
| Label | Accuracy |
|---|---|
| all | 0.8715 |
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import SetFitModel
# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("brendaac/setfit-prom-bac")
# Run inference
preds = model("My sleep was deep")
<!--
### Downstream Use
*List how someone could finetune this model on their own dataset.*
-->
<!--
### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->
<!--
## Bias, Risks and Limitations
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
-->
<!--
### Recommendations
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
-->
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 3 | 9.625 | 20 |
| Label | Training Sample Count |
|---|---|
| Alcohol | 8 |
| Appetite | 8 |
| Concentration | 8 |
| Drugs | 8 |
| Feeling Out of Control | 8 |
| Financial Worries | 8 |
| Future | 8 |
| Loss of Usual Health | 8 |
| Outcome | 8 |
| Physical Function | 8 |
| Present | 8 |
| Sleep | 8 |
| Smoking | 8 |
| Spiritual Concerns | 8 |
| Support | 8 |
| Treatment UX | 8 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0021 | 1 | 0.1955 | - |
| 0.1042 | 50 | 0.1787 | - |
| 0.2083 | 100 | 0.1152 | - |
| 0.3125 | 150 | 0.0475 | - |
| 0.4167 | 200 | 0.0276 | - |
| 0.5208 | 250 | 0.0161 | - |
| 0.625 | 300 | 0.0114 | - |
| 0.7292 | 350 | 0.0094 | - |
| 0.8333 | 400 | 0.007 | - |
| 0.9375 | 450 | 0.0063 | - |
| 1.0 | 480 | - | 0.0585 |
| 1.0417 | 500 | 0.0055 | - |
| 1.1458 | 550 | 0.0051 | - |
| 1.25 | 600 | 0.0047 | - |
| 1.3542 | 650 | 0.0043 | - |
| 1.4583 | 700 | 0.0042 | - |
| 1.5625 | 750 | 0.004 | - |
| 1.6667 | 800 | 0.0039 | - |
| 1.7708 | 850 | 0.0037 | - |
| 1.875 | 900 | 0.0037 | - |
| 1.9792 | 950 | 0.0038 | - |
| 2.0 | 960 | - | 0.0577 |
@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->