BarryRL commited on
Commit
8742581
·
verified ·
1 Parent(s): 72cf1d7

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +19 -18
  2. label2id.json +1 -0
  3. label_map.json +1 -0
  4. model.safetensors +1 -1
  5. model_head.pkl +1 -1
README.md CHANGED
@@ -5,15 +5,16 @@ tags:
5
  - text-classification
6
  - generated_from_setfit_trainer
7
  widget:
8
- - text: Small pleural effusion on the left side. Mild cardiomegaly; no acute issues.
9
- - text: Calcified granuloma in the left lower lobe, incidental finding. Findings
10
- consistent with COPD exacerbation.
11
- - text: Right upper lobe consolidation consistent with pneumonia. Findings suggestive
12
- of community-acquired pneumonia.
13
  - text: Small pleural effusion on the left side. Suspicious for malignancy; urgent
14
  CT recommended.
15
- - text: Suspected rib fracture; follow-up imaging recommended. Mild cardiomegaly;
16
- no acute issues.
 
 
 
 
 
 
17
  metrics:
18
  - accuracy
19
  pipeline_tag: text-classification
@@ -66,7 +67,7 @@ from setfit import SetFitModel
66
  # Download from the 🤗 Hub
67
  model = SetFitModel.from_pretrained("setfit_model_id")
68
  # Run inference
69
- preds = model("Small pleural effusion on the left side. Mild cardiomegaly; no acute issues.")
70
  ```
71
 
72
  <!--
@@ -98,7 +99,7 @@ preds = model("Small pleural effusion on the left side. Mild cardiomegaly; no a
98
  ### Training Set Metrics
99
  | Training set | Min | Median | Max |
100
  |:-------------|:----|:--------|:----|
101
- | Word count | 10 | 23.3913 | 53 |
102
 
103
  ### Training Hyperparameters
104
  - batch_size: (8, 8)
@@ -121,15 +122,15 @@ preds = model("Small pleural effusion on the left side. Mild cardiomegaly; no a
121
  ### Training Results
122
  | Epoch | Step | Training Loss | Validation Loss |
123
  |:------:|:----:|:-------------:|:---------------:|
124
- | 0.0238 | 1 | 0.1381 | - |
125
- | 1.1905 | 50 | 0.1559 | - |
126
- | 2.3810 | 100 | 0.0962 | - |
127
- | 3.5714 | 150 | 0.072 | - |
128
- | 4.7619 | 200 | 0.068 | - |
129
- | 5.9524 | 250 | 0.0652 | - |
130
- | 7.1429 | 300 | 0.0574 | - |
131
- | 8.3333 | 350 | 0.0579 | - |
132
- | 9.5238 | 400 | 0.0589 | - |
133
 
134
  ### Framework Versions
135
  - Python: 3.11.11
 
5
  - text-classification
6
  - generated_from_setfit_trainer
7
  widget:
 
 
 
 
 
8
  - text: Small pleural effusion on the left side. Suspicious for malignancy; urgent
9
  CT recommended.
10
+ - text: Hyperinflated lungs, consistent with COPD. No acute cardiopulmonary abnormalities.
11
+ - text: Lungs clear, no consolidation, no tuberculosis. Normal mediastinal contour.
12
+ Hilar structures normal. No osseous lesions. nan Normal chest radiograph. No evidence
13
+ of infectious process. No follow-up needed. Suitable for immigration clearance.
14
+ - text: Small pleural effusion on the left side. Normal chest X-ray, no acute findings.
15
+ - text: Heart size and mediastinal contours normal. Lungs clear, no focal consolidation.
16
+ 0.8 cm non-calcified nodule in left upper lobe. No lymphadenopathy. No acute cardiopulmonary
17
+ abnormalities. Follow-up CT recommended. Chest CT recommended to assess nodule.
18
  metrics:
19
  - accuracy
20
  pipeline_tag: text-classification
 
67
  # Download from the 🤗 Hub
68
  model = SetFitModel.from_pretrained("setfit_model_id")
69
  # Run inference
70
+ preds = model("Small pleural effusion on the left side. Normal chest X-ray, no acute findings.")
71
  ```
72
 
73
  <!--
 
99
  ### Training Set Metrics
100
  | Training set | Min | Median | Max |
101
  |:-------------|:----|:--------|:----|
102
+ | Word count | 11 | 24.3913 | 53 |
103
 
104
  ### Training Hyperparameters
105
  - batch_size: (8, 8)
 
122
  ### Training Results
123
  | Epoch | Step | Training Loss | Validation Loss |
124
  |:------:|:----:|:-------------:|:---------------:|
125
+ | 0.0244 | 1 | 0.1229 | - |
126
+ | 1.2195 | 50 | 0.1709 | - |
127
+ | 2.4390 | 100 | 0.0923 | - |
128
+ | 3.6585 | 150 | 0.0738 | - |
129
+ | 4.8780 | 200 | 0.073 | - |
130
+ | 6.0976 | 250 | 0.0634 | - |
131
+ | 7.3171 | 300 | 0.0627 | - |
132
+ | 8.5366 | 350 | 0.0555 | - |
133
+ | 9.7561 | 400 | 0.0583 | - |
134
 
135
  ### Framework Versions
136
  - Python: 3.11.11
label2id.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"annual screening": 0, "cardiomegaly": 1, "copd": 2, "ct recommended": 3, "malignancy": 4, "no follow-up needed": 5, "nodule": 6, "nodule (unspecified)": 7, "normal": 8, "opacity": 9, "pleural effusion": 10, "pneumonia": 11, "pneumothorax": 12, "repeat imaging": 13, "rib fracture": 14, "small nodules": 15, "suspicious nodules": 16}
label_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"0": "annual screening", "1": "cardiomegaly", "2": "copd", "3": "ct recommended", "4": "malignancy", "5": "no follow-up needed", "6": "nodule", "7": "nodule (unspecified)", "8": "normal", "9": "opacity", "10": "pleural effusion", "11": "pneumonia", "12": "pneumothorax", "13": "repeat imaging", "14": "rib fracture", "15": "small nodules", "16": "suspicious nodules"}
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:171ef870e7ddddae939a339cd0b9ff7920654acfd0b3c7b74b570a4a03e417ab
3
  size 433263448
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf117229fd57b49ff004bae84f9160232b17619ece79389abaedb1a35d9911c5
3
  size 433263448
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:037f1bbdbad74772022dc6e4b3b4e188eae2b2e68a74e8e3db085412f1cdc742
3
  size 111172
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ae784e085cb211b565c8788c712cd5a4fa33f6b4b154c6a4ac87088499c1b15
3
  size 111172