--- base_model: mini1013/master_domain library_name: setfit metrics: - accuracy pipeline_tag: text-classification tags: - setfit - sentence-transformers - text-classification - generated_from_setfit_trainer widget: - text: 땀흡수 스포츠 운동 면 머리 헤어밴드 여자아이 고등학생 여성 검정 드렉온미 - text: 니켄 접이형 다리털제거기 1p 숱제거기 다리털면도 옵션없음 제이에이치코리아 - text: 관리 눈썹면도기 면도 미용 니켄 일자형 눈썹칼 옵션없음 프렌드리빙 - text: 천사의 웨딩드레스는 빠르게 승인받을 수 있는 로즈 레드 신부 웨 10001N548703 중_로즈 레드 선배 - text: 립브러쉬 실리콘 립스머지 휴대용 투명 미리 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: accuracy value: 0.6375838926174496 name: Accuracy --- # SetFit with mini1013/master_domain This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [mini1013/master_domain](https://huggingface.co/mini1013/master_domain) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification. The model has been trained using an efficient few-shot learning technique that involves: 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning. 2. 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](https://huggingface.co/mini1013/master_domain) - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance - **Maximum Sequence Length:** 512 tokens - **Number of Classes:** 8 classes ### Model Sources - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit) - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055) - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit) ### Model Labels | Label | Examples | |:------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 2.0 | | | 0.0 | | | 6.0 | | | 5.0 | | | 7.0 | | | 3.0 | | | 4.0 | | | 1.0 | | ## Evaluation ### Metrics | Label | Accuracy | |:--------|:---------| | **all** | 0.6376 | ## Uses ### Direct Use for Inference First install the SetFit library: ```bash pip install setfit ``` Then you can load this model and run inference. ```python from setfit import SetFitModel # Download from the 🤗 Hub model = SetFitModel.from_pretrained("mini1013/master_cate_bt5_test") # Run inference preds = model("립브러쉬 실리콘 립스머지 휴대용 투명 미리") ``` ## Training Details ### Training Set Metrics | Training set | Min | Median | Max | |:-------------|:----|:--------|:----| | Word count | 3 | 10.0538 | 20 | | Label | Training Sample Count | |:------|:----------------------| | 0.0 | 12 | | 1.0 | 12 | | 2.0 | 12 | | 3.0 | 19 | | 4.0 | 20 | | 5.0 | 27 | | 6.0 | 13 | | 7.0 | 15 | ### Training Hyperparameters - batch_size: (512, 512) - num_epochs: (50, 50) - max_steps: -1 - sampling_strategy: oversampling - num_iterations: 60 - body_learning_rate: (2e-05, 1e-05) - head_learning_rate: 0.01 - loss: CosineSimilarityLoss - distance_metric: cosine_distance - margin: 0.25 - end_to_end: False - use_amp: False - warmup_proportion: 0.1 - l2_weight: 0.01 - seed: 42 - eval_max_steps: -1 - load_best_model_at_end: False ### Training Results | Epoch | Step | Training Loss | Validation Loss | |:------:|:----:|:-------------:|:---------------:| | 0.0625 | 1 | 0.4921 | - | | 3.125 | 50 | 0.2813 | - | | 6.25 | 100 | 0.0272 | - | | 9.375 | 150 | 0.0167 | - | | 12.5 | 200 | 0.002 | - | | 15.625 | 250 | 0.0001 | - | | 18.75 | 300 | 0.0001 | - | | 21.875 | 350 | 0.0001 | - | | 25.0 | 400 | 0.0001 | - | | 28.125 | 450 | 0.0001 | - | | 31.25 | 500 | 0.0001 | - | | 34.375 | 550 | 0.0001 | - | | 37.5 | 600 | 0.0001 | - | | 40.625 | 650 | 0.0001 | - | | 43.75 | 700 | 0.0001 | - | | 46.875 | 750 | 0.0001 | - | | 50.0 | 800 | 0.0001 | - | ### Framework Versions - Python: 3.10.12 - SetFit: 1.1.0 - Sentence Transformers: 3.3.1 - Transformers: 4.44.2 - PyTorch: 2.2.0a0+81ea7a4 - Datasets: 3.2.0 - Tokenizers: 0.19.1 ## Citation ### BibTeX ```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} } ```