Downloads · 30 days
5
11% of all-time downloads
ppsingh/iki_sector_setfit
iki_sector_setfit is a text classification model from ppsingh. 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 ppsingh/SECTOR-multilabel-mpnetw as the Sentence Transformer embedding model. A SetFitHead instance is used for classification.
Downloads · 30 days
5
11% of all-time downloads
All-time downloads
44
Public
Parameters
109M
438 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. This SetFit model uses ppsingh/SECTOR-multilabel-mpnet_w as the Sentence Transformer embedding model. A SetFitHead instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
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("ppsingh/iki_sector_setfit")
# Run inference
preds = model("In the shipping and aviation sectors, emission reduction efforts will be focused on distributing eco-friendly ships and enhancing the operational efficiency of aircraft. Agriculture, livestock farming and fisheries: The Republic Korea is introducing various options to accelerate low-carbon farming, for instance, improving irrigation techniques in rice paddies and adopting low-input systems for nitrogen fertilizers.")
<!--
### 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 | 35 | 76.164 | 170 |
Training Dataset: 250 | Class | Positive Count of Class| |:-------------|:--------| | Economy-wide | 88 | | Energy | 63 | | Other Sector | 64 | | Transport | 139 |
Validation Dataset: 42 | Class | Positive Count of Class| |:-------------|:--------| | Economy-wide | 15 | | Energy | 11 | | Other Sector | 11 | | Transport | 24 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0005 | 1 | 0.2029 | - |
| 0.0993 | 200 | 0.0111 | 0.1124 |
| 0.1985 | 400 | 0.0063 | 0.111 |
| 0.2978 | 600 | 0.0183 | 0.1214 |
| 0.3970 | 800 | 0.0197 | 0.1248 |
| 0.4963 | 1000 | 0.0387 | 0.1339 |
| 0.5955 | 1200 | 0.0026 | 0.1181 |
| 0.6948 | 1400 | 0.0378 | 0.1208 |
| 0.7940 | 1600 | 0.0285 | 0.1267 |
| 0.8933 | 1800 | 0.0129 | 0.1254 |
| 0.9926 | 2000 | 0.0341 | 0.1271 |
| Epoch | Training F1-micro | Training F1-Samples | Training F1-weighted | Validation F1-micro | Validation F1-samples | Validation F1-weighted |
|---|---|---|---|---|---|---|
| 0 | 0.954 | 0.972 | 0.945 | 0.824 | 0.819 | 0.813 |
| 1 | 0.994 | 0.996 | 0.994 | 0.850 | 0.832 | 0.852 |
| 2 | 0.981 | 0.989 | 0.979 | 0.850 | 0.843 | 0.852 |
| 3 | 0.995 | 0.997 | 0.995 | 0.852 | 0.843 | 0.858 |
| 4 | 0.994 | 0.996 | 0.994 | 0.852 | 0.843 | 0.858 |
| 5 | 0.995 | 0.997 | 0.995 | 0.859 | 0.848 | 0.863 |
| label | precision | recall | f1-score | support |
|---|---|---|---|---|
| Economy-wide | 0.857 | 0.800 | 0.827 | 15.0 |
| Energy | 1.00 | 0.818 | 0.900 | 11.0 |
| Other Sector | 0.615 | 0.727 | 0.667 | 11.0 |
| Transport | 0.958 | 0.958 | 0.958 | 24.0 |
Carbon emissions were measured using CodeCarbon.
@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.*
-->