Downloads · 30 days
7
8% of all-time downloads
beethogedeon/financial-sentiment-Gemma-300m
financial-sentiment-Gemma-300m is a text classification model from beethogedeon. 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 unsloth/embeddinggemma-300m as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
92
Public
Parameters
303M
1.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors615 MB · 94%
From the Hugging Face model README
This is a SetFit model that can be used for Text Classification. This SetFit model uses unsloth/embeddinggemma-300m 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 | <ul><li>'Technopolis plans to develop in stages an area of no less than 100,000 square meters in order to host companies working in computer technologies and telecommunications , the statement said .'</li><li>'In Sweden , Gallerix accumulated SEK denominated sales were down 1 % and EUR denominated sales were up 11 % .'</li><li>'The company supports its global customers in developing new technologies and offers a fast route from product development to applications and volume production .'</li></ul> |
| negative | <ul><li>'The international electronic industry company Elcoteq has laid off tens of employees from its Tallinn facility ; contrary to earlier layoffs the company contracted the ranks of its office workers , the daily Postimees reported .'</li><li>'A tinyurl link takes users to a scamming site promising that users can earn thousands of dollars by becoming a Google ( NASDAQ : GOOG ) Cash advertiser .'</li><li>'Compared with the FTSE 100 index , which rose 36.7 points ( or 0.6 % ) on the day , this was a relative price change of -0.2 % .'</li></ul> |
| positive | <ul><li>'With the new production plant the company would increase its capacity to meet the expected increase in demand and would improve the use of raw materials and therefore increase the production profitability .'</li><li>"According to the company 's updated strategy for the years 2009-2012 , Basware targets a long-term net sales growth in the range of 20 % -40 % with an operating profit margin of 10 % -20 % of net sales ."</li><li>"FINANCING OF ASPOCOMP 'S GROWTH Aspocomp is aggressively pursuing its growth strategy by increasingly focusing on technologically more demanding HDI printed circuit boards PCBs ."</li></ul> |
| Label | Accuracy |
|---|---|
| all | 0.8958 |
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("beethogedeon/financial-sentiment-Gemma-300m")
# Run inference
preds = model("Officials did not disclose the contract value .")
<!--
### 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 | 23.6836 | 62 |
| Label | Training Sample Count |
|---|---|
| negative | 301 |
| neutral | 1488 |
| positive | 793 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.002 | 1 | 0.2539 | - |
| 0.1 | 50 | 0.2526 | - |
| 0.2 | 100 | 0.2431 | - |
| 0.3 | 150 | 0.2502 | - |
| 0.4 | 200 | 0.2365 | - |
| 0.5 | 250 | 0.2268 | - |
| 0.6 | 300 | 0.2277 | - |
| 0.7 | 350 | 0.1839 | - |
| 0.8 | 400 | 0.1644 | - |
| 0.9 | 450 | 0.1393 | - |
| 1.0 | 500 | 0.1401 | - |
@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.*
-->