Upload folder using huggingface_hub
Browse files- README.md +35 -21
- id2label.json +1 -0
- label2id.json +1 -1
- label_to_category.json +1 -0
- model.safetensors +1 -1
- model_head.pkl +2 -2
README.md
CHANGED
|
@@ -5,16 +5,18 @@ tags:
|
|
| 5 |
- text-classification
|
| 6 |
- generated_from_setfit_trainer
|
| 7 |
widget:
|
| 8 |
-
- text:
|
| 9 |
-
CT recommended.
|
| 10 |
-
- text:
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
- text:
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
metrics:
|
| 19 |
- accuracy
|
| 20 |
pipeline_tag: text-classification
|
|
@@ -67,7 +69,7 @@ from setfit import SetFitModel
|
|
| 67 |
# Download from the 🤗 Hub
|
| 68 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
| 69 |
# Run inference
|
| 70 |
-
preds = model("
|
| 71 |
```
|
| 72 |
|
| 73 |
<!--
|
|
@@ -99,7 +101,7 @@ preds = model("Small pleural effusion on the left side. Normal chest X-ray, no
|
|
| 99 |
### Training Set Metrics
|
| 100 |
| Training set | Min | Median | Max |
|
| 101 |
|:-------------|:----|:--------|:----|
|
| 102 |
-
| Word count |
|
| 103 |
|
| 104 |
### Training Hyperparameters
|
| 105 |
- batch_size: (8, 8)
|
|
@@ -122,15 +124,27 @@ preds = model("Small pleural effusion on the left side. Normal chest X-ray, no
|
|
| 122 |
### Training Results
|
| 123 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 124 |
|:------:|:----:|:-------------:|:---------------:|
|
| 125 |
-
| 0.
|
| 126 |
-
|
|
| 127 |
-
|
|
| 128 |
-
|
|
| 129 |
-
|
|
| 130 |
-
|
|
| 131 |
-
|
|
| 132 |
-
|
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
### Framework Versions
|
| 136 |
- Python: 3.11.11
|
|
|
|
| 5 |
- text-classification
|
| 6 |
- generated_from_setfit_trainer
|
| 7 |
widget:
|
| 8 |
+
- text: Multiple non-calcified nodules in left lower lobe, ranging from 3-6mm. Follow-up
|
| 9 |
+
CT scan recommended.
|
| 10 |
+
- text: Heart size and mediastinal contours normal. Lungs clear, no consolidation
|
| 11 |
+
or acute abnormality. No pleural effusion or pneumothorax. No acute osseous abnormalities.
|
| 12 |
+
Small 0.5 cm calcified granuloma in right upper lobe, likely benign from prior
|
| 13 |
+
infection. No acute cardiopulmonary disease. Incidental right upper lobe granuloma.
|
| 14 |
+
No follow-up needed unless clinically indicated. nan
|
| 15 |
+
- text: Patchy consolidation in RLL consistent with pneumonia. Recommend clinical
|
| 16 |
+
follow-up.
|
| 17 |
+
- text: Calcified granuloma in the left lower lobe, incidental finding. Findings
|
| 18 |
+
consistent with COPD exacerbation.
|
| 19 |
+
- text: Moderate pleural effusion and patchy consolidation in bilateral lung bases.
|
| 20 |
metrics:
|
| 21 |
- accuracy
|
| 22 |
pipeline_tag: text-classification
|
|
|
|
| 69 |
# Download from the 🤗 Hub
|
| 70 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
| 71 |
# Run inference
|
| 72 |
+
preds = model("Moderate pleural effusion and patchy consolidation in bilateral lung bases.")
|
| 73 |
```
|
| 74 |
|
| 75 |
<!--
|
|
|
|
| 101 |
### Training Set Metrics
|
| 102 |
| Training set | Min | Median | Max |
|
| 103 |
|:-------------|:----|:--------|:----|
|
| 104 |
+
| Word count | 7 | 17.5143 | 53 |
|
| 105 |
|
| 106 |
### Training Hyperparameters
|
| 107 |
- batch_size: (8, 8)
|
|
|
|
| 124 |
### Training Results
|
| 125 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 126 |
|:------:|:----:|:-------------:|:---------------:|
|
| 127 |
+
| 0.0096 | 1 | 0.1417 | - |
|
| 128 |
+
| 0.4808 | 50 | 0.1824 | - |
|
| 129 |
+
| 0.9615 | 100 | 0.1083 | - |
|
| 130 |
+
| 1.4423 | 150 | 0.0817 | - |
|
| 131 |
+
| 1.9231 | 200 | 0.0777 | - |
|
| 132 |
+
| 2.4038 | 250 | 0.0636 | - |
|
| 133 |
+
| 2.8846 | 300 | 0.0649 | - |
|
| 134 |
+
| 3.3654 | 350 | 0.0603 | - |
|
| 135 |
+
| 3.8462 | 400 | 0.0713 | - |
|
| 136 |
+
| 4.3269 | 450 | 0.0507 | - |
|
| 137 |
+
| 4.8077 | 500 | 0.0569 | - |
|
| 138 |
+
| 5.2885 | 550 | 0.0553 | - |
|
| 139 |
+
| 5.7692 | 600 | 0.0614 | - |
|
| 140 |
+
| 6.25 | 650 | 0.0512 | - |
|
| 141 |
+
| 6.7308 | 700 | 0.0559 | - |
|
| 142 |
+
| 7.2115 | 750 | 0.0512 | - |
|
| 143 |
+
| 7.6923 | 800 | 0.0464 | - |
|
| 144 |
+
| 8.1731 | 850 | 0.0547 | - |
|
| 145 |
+
| 8.6538 | 900 | 0.0455 | - |
|
| 146 |
+
| 9.1346 | 950 | 0.0524 | - |
|
| 147 |
+
| 9.6154 | 1000 | 0.0526 | - |
|
| 148 |
|
| 149 |
### Framework Versions
|
| 150 |
- Python: 3.11.11
|
id2label.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"0": "air bronchograms", "1": "annual screening", "2": "benign", "3": "calcification", "4": "calcified nodule", "5": "cardiomegaly", "6": "chest ct", "7": "clinical correlation", "8": "clinical monitoring", "9": "consolidation", "10": "copd", "11": "ct recommended", "12": "ct scan", "13": "effusion", "14": "follow-up", "15": "follow-uproutine follow-up", "16": "granuloma", "17": "hear size normal", "18": "heart size normal", "19": "hyperinflation", "20": "infection", "21": "infiltrates", "22": "large heart", "23": "large nodule", "24": "lungs clear", "25": "malignancy", "26": "no abnormalities", "27": "no acute findings", "28": "no acute issues", "29": "no calcification", "30": "no calcifications", "31": "no consolidation", "32": "no contraindications", "33": "no effusion", "34": "no follow-up needed", "35": "no granuloma", "36": "no infection", "37": "no infiltrates", "38": "no lymphadenopathy", "39": "no mass", "40": "no nodules", "41": "no pheumothorax", "42": "no pleural effusion", "43": "no pleurla effusion", "44": "no pneumothorax", "45": "no tuberculosis", "46": "nodule", "47": "nodules", "48": "normal chest xray", "49": "opacity", "50": "orthopedic consult", "51": "pleural effusion", "52": "pneumonia", "53": "pneumothorax", "54": "pneumothorax resolved", "55": "previous imaging", "56": "prior infection", "57": "pulmonary nodule", "58": "repeat imaging", "59": "rib fracture", "60": "smoker", "61": "suspicious", "62": "thoracic spine", "63": "urgent"}
|
label2id.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"annual screening":
|
|
|
|
| 1 |
+
{"air bronchograms": 0, "annual screening": 1, "benign": 2, "calcification": 3, "calcified nodule": 4, "cardiomegaly": 5, "chest ct": 6, "clinical correlation": 7, "clinical monitoring": 8, "consolidation": 9, "copd": 10, "ct recommended": 11, "ct scan": 12, "effusion": 13, "follow-up": 14, "follow-uproutine follow-up": 15, "granuloma": 16, "hear size normal": 17, "heart size normal": 18, "hyperinflation": 19, "infection": 20, "infiltrates": 21, "large heart": 22, "large nodule": 23, "lungs clear": 24, "malignancy": 25, "no abnormalities": 26, "no acute findings": 27, "no acute issues": 28, "no calcification": 29, "no calcifications": 30, "no consolidation": 31, "no contraindications": 32, "no effusion": 33, "no follow-up needed": 34, "no granuloma": 35, "no infection": 36, "no infiltrates": 37, "no lymphadenopathy": 38, "no mass": 39, "no nodules": 40, "no pheumothorax": 41, "no pleural effusion": 42, "no pleurla effusion": 43, "no pneumothorax": 44, "no tuberculosis": 45, "nodule": 46, "nodules": 47, "normal chest xray": 48, "opacity": 49, "orthopedic consult": 50, "pleural effusion": 51, "pneumonia": 52, "pneumothorax": 53, "pneumothorax resolved": 54, "previous imaging": 55, "prior infection": 56, "pulmonary nodule": 57, "repeat imaging": 58, "rib fracture": 59, "smoker": 60, "suspicious": 61, "thoracic spine": 62, "urgent": 63}
|
label_to_category.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lungs clear": "present_findings", "normal chest xray": "present_findings", "heart size normal": "present_findings", "thoracic spine": "present_findings", "calcification": "present_findings", "prior infection": "present_findings", "benign": "present_findings", "granuloma": "nodules", "nodules": "present_findings", "no contraindications": "present_findings", "large heart": "present_findings", "cardiomegaly": "present_findings", "nodule": "nodules", "smoker": "present_findings", "previous imaging": "present_findings", "hear size normal": "present_findings", "no calcification": "absent_findings", "no pneumothorax": "absent_findings", "no pleurla effusion": "present_findings", "no lymphadenopathy": "absent_findings", "rib fracture": "present_findings", "pleural effusion": "present_findings", "opacity": "present_findings", "malignancy": "present_findings", "infection": "present_findings", "suspicious": "present_findings", "pneumonia": "present_findings", "copd": "present_findings", "infiltrates": "present_findings", "follow-up": "follow_up", "ct scan": "follow_up", "hyperinflation": "present_findings", "consolidation": "present_findings", "pneumothorax resolved": "present_findings", "calcified nodule": "present_findings", "effusion": "present_findings", "pneumothorax": "present_findings", "air bronchograms": "present_findings", "no consolidation": "absent_findings", "no pheumothorax": "absent_findings", "no pleural effusion": "absent_findings", "no calcifications": "absent_findings", "no tuberculosis": "absent_findings", "no infection": "absent_findings", "no infiltrates": "absent_findings", "no abnormalities": "absent_findings", "no effusion": "absent_findings", "no acute issues": "absent_findings", "no acute findings": "absent_findings", "no nodules": "absent_findings", "no granuloma": "absent_findings", "no mass": "absent_findings", "no follow-up needed": "follow_up", "annual screening": "follow_up", "follow-uproutine follow-up": "follow_up", "chest ct": "follow_up", "ct recommended": "follow_up", "urgent": "follow_up", "repeat imaging": "follow_up", "orthopedic consult": "follow_up", "clinical correlation": "follow_up", "clinical monitoring": "follow_up", "pulmonary nodule": "nodules", "large nodule": "nodules"}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 433263448
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8b425d5f7174fe6bf2ec482c1bff0edb932f906fb7adab5c54460afd9d0da3a
|
| 3 |
size 433263448
|
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5dc90c146c5b5fc4f81bca83c3b76af9fb32e4bcfd3430cc900b2f32e9ffd81
|
| 3 |
+
size 351924
|