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
Download setup.py from row56/ProtoPatient: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/row56/ProtoPatient/resolve/3900a39fe4e8da7fceda1ae86650c992f9ade89a/setup.py
- Command line
-
hf download hf://row56/ProtoPatient@3900a39fe4e8da7fceda1ae86650c992f9ade89a/setup.py
-
curl -L -o setup.py https://huggingface.co/row56/ProtoPatient/resolve/3900a39fe4e8da7fceda1ae86650c992f9ade89a/setup.py
308 Bytes
| from setuptools import setup, find_packages | |
| setup( | |
| name="proto_patient", | |
| version="0.1.0", | |
| description="ProtoPatient multi-label classification model", | |
| packages=find_packages(), | |
| install_requires=[ | |
| "transformers>=4.0.0", | |
| "torch>=1.8.0" | |
| ], | |
| python_requires=">=3.7", | |
| ) |