metadata
base_model: mini1013/master_domain
library_name: setfit
metrics:
- metric
pipeline_tag: text-classification
tags:
- setfit
- sentence-transformers
- text-classification
- generated_from_setfit_trainer
widget:
- text: WD NEW MY PASSPORT 외장SSD 1TB 외장하드 스마트폰 아이패드 XBOX 세븐컴
- text: >-
2.5인치 HDD SSD 보관 케이스 USB3.0 SATA 어답터 확장 외장하드 케이스 선택1: 2.5인치 HDD SSD 하드 보관함
퀄리티어슈어런스코리아
- text: 이지넷 NEXT-350U3 3.5 외장케이스/USB3.0 하드미포함 레알몰
- text: NEXT-644DU3 4베이 HDD SSD USB3.0 도킹스테이션 프리줌
- text: Seagate IronWolf NAS ST1000VN002 1TB AS3년/공식판매점 (주)픽셀아트 (PIXELART)
inference: true
model-index:
- name: SetFit with mini1013/master_domain
results:
- task:
type: text-classification
name: Text Classification
dataset:
name: Unknown
type: unknown
split: test
metrics:
- type: metric
value: 0.7785757031717534
name: Metric
SetFit with mini1013/master_domain
This is a SetFit model that can be used for Text Classification. This SetFit model uses mini1013/master_domain 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:
- Fine-tuning a Sentence Transformer with contrastive learning.
- Training a classification head with features from the fine-tuned Sentence Transformer.
Model Details
Model Description
- Model Type: SetFit
- Sentence Transformer body: mini1013/master_domain
- Classification head: a LogisticRegression instance
- Maximum Sequence Length: 512 tokens
- Number of Classes: 12 classes
Model Sources
- Repository: SetFit on GitHub
- Paper: Efficient Few-Shot Learning Without Prompts
- Blogpost: SetFit: Efficient Few-Shot Learning Without Prompts
Model Labels
Label | Examples |
---|---|
3 |
|
1 |
|
0 |
|
4 |
|
6 |
|
11 |
|
2 |
|
5 |
|
9 |
|
8 |
|
10 |
|
7 |
|
Evaluation
Metrics
Label | Metric |
---|---|
all | 0.7786 |
Uses
Direct Use for Inference
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("mini1013/master_cate_el16")
# Run inference
preds = model("이지넷 NEXT-350U3 3.5 외장케이스/USB3.0 하드미포함 레알몰")
Training Details
Training Set Metrics
Training set | Min | Median | Max |
---|---|---|---|
Word count | 4 | 9.6059 | 20 |
Label | Training Sample Count |
---|---|
0 | 50 |
1 | 50 |
2 | 50 |
3 | 50 |
4 | 50 |
5 | 50 |
6 | 50 |
7 | 3 |
8 | 50 |
9 | 50 |
10 | 7 |
11 | 50 |
Training Hyperparameters
- batch_size: (512, 512)
- num_epochs: (20, 20)
- max_steps: -1
- sampling_strategy: oversampling
- num_iterations: 40
- body_learning_rate: (2e-05, 2e-05)
- head_learning_rate: 2e-05
- loss: CosineSimilarityLoss
- distance_metric: cosine_distance
- margin: 0.25
- end_to_end: False
- use_amp: False
- warmup_proportion: 0.1
- seed: 42
- eval_max_steps: -1
- load_best_model_at_end: False
Training Results
Epoch | Step | Training Loss | Validation Loss |
---|---|---|---|
0.0125 | 1 | 0.497 | - |
0.625 | 50 | 0.2348 | - |
1.25 | 100 | 0.0733 | - |
1.875 | 150 | 0.0254 | - |
2.5 | 200 | 0.0165 | - |
3.125 | 250 | 0.0122 | - |
3.75 | 300 | 0.0021 | - |
4.375 | 350 | 0.0024 | - |
5.0 | 400 | 0.001 | - |
5.625 | 450 | 0.0019 | - |
6.25 | 500 | 0.0002 | - |
6.875 | 550 | 0.0007 | - |
7.5 | 600 | 0.0009 | - |
8.125 | 650 | 0.0002 | - |
8.75 | 700 | 0.0002 | - |
9.375 | 750 | 0.0003 | - |
10.0 | 800 | 0.0002 | - |
10.625 | 850 | 0.0002 | - |
11.25 | 900 | 0.0002 | - |
11.875 | 950 | 0.0001 | - |
12.5 | 1000 | 0.0001 | - |
13.125 | 1050 | 0.0001 | - |
13.75 | 1100 | 0.0001 | - |
14.375 | 1150 | 0.0001 | - |
15.0 | 1200 | 0.0001 | - |
15.625 | 1250 | 0.0001 | - |
16.25 | 1300 | 0.0001 | - |
16.875 | 1350 | 0.0001 | - |
17.5 | 1400 | 0.0001 | - |
18.125 | 1450 | 0.0001 | - |
18.75 | 1500 | 0.0001 | - |
19.375 | 1550 | 0.0001 | - |
20.0 | 1600 | 0.0001 | - |
Framework Versions
- Python: 3.10.12
- SetFit: 1.1.0.dev0
- Sentence Transformers: 3.1.1
- Transformers: 4.46.1
- PyTorch: 2.4.0+cu121
- Datasets: 2.20.0
- Tokenizers: 0.20.0
Citation
BibTeX
@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}
}