Downloads · 30 days
5
10% of all-time downloads
spaly99/my-setfit-model-dataset-PG-OCR-2
my-setfit-model-dataset-PG-OCR-2 is a text classification model from spaly99. 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. This SetFit model uses sentence-transformers/paraphrase-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used…
Downloads · 30 days
5
10% of all-time downloads
All-time downloads
50
Public
Parameters
109M
1.8 GB 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. This SetFit model uses sentence-transformers/paraphrase-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| True | <ul><li>'715-462-3626 Open Daily @ 7am '</li><li>': HTTP'</li><li>'Zmywarka modutowa. Pasuje wszedzie. '</li></ul> |
| False | <ul><li>'(retencja w dniach: 180)'</li><li>'Bosnia and Herzegovina'</li><li>'Arruda dos Vinhos'</li></ul> |
| Label | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
| all | 0.8625 | 0.825 | 0.8919 | 0.8571 |
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("setfit_model_id")
# Run inference
preds = model(": Session")
<!--
### 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 | 1 | 8.5094 | 146 |
| Label | Training Sample Count |
|---|---|
| False | 157 |
| True | 163 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0013 | 1 | 0.2507 | - |
| 0.0625 | 50 | 0.0961 | - |
| 0.125 | 100 | 0.2456 | - |
| 0.1875 | 150 | 0.0709 | - |
| 0.25 | 200 | 0.0213 | - |
| 0.3125 | 250 | 0.0193 | - |
| 0.375 | 300 | 0.0827 | - |
| 0.4375 | 350 | 0.015 | - |
| 0.5 | 400 | 0.0039 | - |
| 0.5625 | 450 | 0.0087 | - |
| 0.625 | 500 | 0.0064 | - |
| 0.6875 | 550 | 0.001 | - |
| 0.75 | 600 | 0.0236 | - |
| 0.8125 | 650 | 0.0553 | - |
| 0.875 | 700 | 0.0661 | - |
| 0.9375 | 750 | 0.0006 | - |
| 1.0 | 800 | 0.0604 | - |
@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.*
-->