--- tags: - setfit - sentence-transformers - text-classification - generated_from_setfit_trainer widget: - text: '- Barth BM, Shanmugavelandy SS, Tacelosky DM, Kester M, Morad SA, Cabot MC (2013). "Gaucher''s disease and cancer: a sphingolipid perspective". Crit Rev Oncog 18 (3): 221–34. doi:10.1615/critrevoncog.2013005814. PMC 3604879.' - text: '"The intersection of attention-deficit/hyperactivity disorder and substance abuse". Curr Opin Psychiatry. 24 (4): 280–285. doi:10.1097/YCO.0b013e328345c956. PMC .' - text: 'Parrilla-Rodriguez AM, Gorrin-Peralta JJ. La Lactancia Materna en Puerto Rico: Patrones Tradicionales, Tendencias Nacionales y Estrategias para el Futuro. P R Health Sci J 1999;18:223-228. (42.) Ni H, Simile C, Hardy AM.' - text: 'For cases where there is an actual exposure to someone who is confirmed to have COVID-19, report code Z20.828, Contact with and (suspected) exposure to other viral communicable diseases. This code is not necessary if the exposed patient is confirmed to have COVID-19. - Signs and symptoms: For patients presenting with any signs/symptoms and where a definitive diagnosis has not been established, assign the appropriate code(s) for each of the presenting signs and symptoms such as: Cough (R05); Shortness of breath (R06.02) or Fever unspecified (R50.9). Do not report “suspected” cases of COVID-19 with B97.29. In addition, diagnosis code B34.2, Coronavirus infection, unspecified, typically is not appropriate.' - text: '- HCPCS codes: what the provider used. - ICD-10-CM: why the provider ''did'' and ''used''. For example, if a urologist diagnoses a patient with bladder cancer and performs a bladder instillation of 1 mg of Bacillus Calmette-Guerin (BCG) to treat the tumor, the medical coder might assign: - CPT® codes (did): 51720 (Bladder instillation of anticarcinogenic agent (including retention time)) - HCPCS code (used): J9030 (BCG live intravesical instillation, 1mg) - ICD-10 code (why): C67.9 (Malignant neoplasm of bladder, unspecified) As mentioned above, though, there are some exceptions to these general code set concepts. WHEN TO CHOOSE CPT® Vs HCPCS First, not all payers accept HCPCS Level II codes. Initially intended for Medicare claims, many private payers have since adopted the HCPCS Level II code set.' metrics: - accuracy pipeline_tag: text-classification library_name: setfit inference: true base_model: sentence-transformers/paraphrase-mpnet-base-v2 model-index: - name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2 results: - task: type: text-classification name: Text Classification dataset: name: Unknown type: unknown split: test metrics: - type: accuracy value: 0.8571428571428571 name: Accuracy --- # SetFit with sentence-transformers/paraphrase-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/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-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/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2) - **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:** 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 | |:---------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | negative |