--- library_name: setfit tags: - setfit - sentence-transformers - text-classification - generated_from_setfit_trainer base_model: sentence-transformers/all-MiniLM-L6-v2 metrics: - accuracy widget: - text: What are the benefits of using cloud storage? - text: 'Which of the following is a Code-Based Test Coverage Metrics(E. F. Miller, 1977 dissertation)? Câu hỏi 1Trả lời a. C1c: Every condition outcome b. MMCC: Multiple Module condition coverage c. Cx - Every "x" statement ("x" can be single, double, triple) d. C2: C0 coverage + loop coverage' - text: 'Gọi X là dòng đời (thời gian làm việc tốt) của sản phẩm ổ cứng máy tính (tính theo năm). Một ổ cứng loại ABC có xác suất làm việc tốt sau 9 năm là 0.1. Giả sử hàm mật độ xác suất của X là f(x) = a (x+1)b cho x ≥ 0 với a > 0 và b > 1. Hãy Tính a, b?' - text: Thủ đô của nước Pháp là gì? - text: How to prove a problem is NP complete problem pipeline_tag: text-classification inference: true model-index: - name: SetFit with sentence-transformers/all-MiniLM-L6-v2 results: - task: type: text-classification name: Text Classification dataset: name: Unknown type: unknown split: test metrics: - type: accuracy value: 0.6666666666666666 name: Accuracy --- # SetFit with sentence-transformers/all-MiniLM-L6-v2 This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) 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:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance - **Maximum Sequence Length:** 256 tokens - **Number of Classes:** 2 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 | |:------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 0 |