Text Classification
Transformers
Safetensors
English
proto
medical
prototypical-networks
Eval Results (legacy)
Instructions to use row56/ProtoPatient with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use row56/ProtoPatient with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="row56/ProtoPatient")# pip install -U transformers accelerate # Load model directly from transformers import ProtoForMultiLabelClassification model = ProtoForMultiLabelClassification.from_pretrained("row56/ProtoPatient", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -113,6 +113,7 @@ ProtoPatient/
|
|
| 113 |
└── .gitattributes
|
| 114 |
```
|
| 115 |
|
|
|
|
| 116 |
|
| 117 |
## How to Use the Model
|
| 118 |
|
|
@@ -236,6 +237,7 @@ for label_id, u_c in enumerate(proto_vecs):
|
|
| 236 |
print(train_texts[idx[0][0]])
|
| 237 |
```
|
| 238 |
|
|
|
|
| 239 |
|
| 240 |
# Intended Use, Limitations & Ethical Considerations
|
| 241 |
|
|
@@ -247,6 +249,8 @@ for label_id, u_c in enumerate(proto_vecs):
|
|
| 247 |
- **Interpretability Demonstration:**
|
| 248 |
The model demonstrates how prototype-based methods can provide interpretable multi-label classification on clinical admission notes.
|
| 249 |
|
|
|
|
|
|
|
| 250 |
## Limitations
|
| 251 |
|
| 252 |
- **Generalization:**
|
|
@@ -258,6 +262,8 @@ for label_id, u_c in enumerate(proto_vecs):
|
|
| 258 |
- **Inter-diagnosis Relationships:**
|
| 259 |
The model does not explicitly model relationships (e.g., conflicts or comorbidities) between different diagnoses.
|
| 260 |
|
|
|
|
|
|
|
| 261 |
## Ethical & Regulatory Considerations
|
| 262 |
|
| 263 |
- **Not for Direct Clinical Use:**
|
|
|
|
| 113 |
└── .gitattributes
|
| 114 |
```
|
| 115 |
|
| 116 |
+
---
|
| 117 |
|
| 118 |
## How to Use the Model
|
| 119 |
|
|
|
|
| 237 |
print(train_texts[idx[0][0]])
|
| 238 |
```
|
| 239 |
|
| 240 |
+
---
|
| 241 |
|
| 242 |
# Intended Use, Limitations & Ethical Considerations
|
| 243 |
|
|
|
|
| 249 |
- **Interpretability Demonstration:**
|
| 250 |
The model demonstrates how prototype-based methods can provide interpretable multi-label classification on clinical admission notes.
|
| 251 |
|
| 252 |
+
---
|
| 253 |
+
|
| 254 |
## Limitations
|
| 255 |
|
| 256 |
- **Generalization:**
|
|
|
|
| 262 |
- **Inter-diagnosis Relationships:**
|
| 263 |
The model does not explicitly model relationships (e.g., conflicts or comorbidities) between different diagnoses.
|
| 264 |
|
| 265 |
+
---
|
| 266 |
+
|
| 267 |
## Ethical & Regulatory Considerations
|
| 268 |
|
| 269 |
- **Not for Direct Clinical Use:**
|