--- tags: - setfit - sentence-transformers - text-classification - generated_from_setfit_trainer widget: - text: 'Trump stated he wanted to stockpile 1% of all BTC. ' - text: about what nigga - text: hehe panicked yield chaser exiting - text: '"larpas" is liquidating all his millions of YES Trump and NO Harris. He is still 1.2 million USD to go.' - text: Lol prove it metrics: - name: Macro F1 type: f1_macro value: 0.8245 - name: Accuracy type: accuracy value: 0.8376 - name: F1 NOISE type: f1_noise value: 0.8725 - name: Precision NOISE type: precision_noise value: 0.9028 - name: Recall NOISE type: recall_noise value: 0.8442 - name: F1 CONTRIBUTING type: f1_contributing value: 0.7765 - name: Precision CONTRIBUTING type: precision_contributing value: 0.7333 - name: Recall CONTRIBUTING type: recall_contributing value: 0.825 pipeline_tag: text-classification library_name: setfit inference: true base_model: sentence-transformers/all-mpnet-base-v2 --- # SetFit with sentence-transformers/all-mpnet-base-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-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-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-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance - **Maximum Sequence Length:** 384 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 |