SetFit with sentence-transformers/paraphrase-mpnet-base-v2
0
7 commits
2 linked in READMEs
updated Aug 15, 2024
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 |
|---|---|
| Neutral |
|
| Bullish |
|
| Bearish |
|
| Label | F1 |
|---|---|
| all | 0.6269 |
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("Inflation is out of control! Just got my electricity bill and it's up 25% from last year. No wonder the Fed is raising rates, but will it be enough to stop the bleeding? #inflation #economy")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 17 | 62.6531 | 119 |
| Label | Training Sample Count |
|---|---|
| Bearish | 16 |
| Bullish | 18 |
| Neutral | 15 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.01 | 1 | 0.235 | - |
| 0.5 | 50 | 0.0307 | - |
| 1.0 | 100 | 0.0008 | 0.0357 |
| 1.5 | 150 | 0.0006 | - |
| 2.0 | 200 | 0.0002 | 0.0303 |
| 2.5 | 250 | 0.0001 | - |
| 3.0 | 300 | 0.0001 | 0.0295 |
| 3.5 | 350 | 0.0001 | - |
| 4.0 | 400 | 0.0001 | 0.0281 |
| 4.5 | 450 | 0.0001 | - |
| 5.0 | 500 | 0.0001 | 0.0287 |
@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}
}
SetFit with sentence-transformers/paraphrase-mpnet-base-v2
0
7 commits
2 linked in READMEs
updated Aug 15, 2024
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 |
|---|---|
| Neutral |
|
| Bullish |
|
| Bearish |
|
| Label | F1 |
|---|---|
| all | 0.6269 |
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("Inflation is out of control! Just got my electricity bill and it's up 25% from last year. No wonder the Fed is raising rates, but will it be enough to stop the bleeding? #inflation #economy")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 17 | 62.6531 | 119 |
| Label | Training Sample Count |
|---|---|
| Bearish | 16 |
| Bullish | 18 |
| Neutral | 15 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.01 | 1 | 0.235 | - |
| 0.5 | 50 | 0.0307 | - |
| 1.0 | 100 | 0.0008 | 0.0357 |
| 1.5 | 150 | 0.0006 | - |
| 2.0 | 200 | 0.0002 | 0.0303 |
| 2.5 | 250 | 0.0001 | - |
| 3.0 | 300 | 0.0001 | 0.0295 |
| 3.5 | 350 | 0.0001 | - |
| 4.0 | 400 | 0.0001 | 0.0281 |
| 4.5 | 450 | 0.0001 | - |
| 5.0 | 500 | 0.0001 | 0.0287 |
@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}
}