技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pyhealth【数据与研究】Guides PyHealth 2.0 healthcare-AI workflows for clinical datasets, task construction, preprocessing, models, training, evaluation, medical-code mapping, and multimodal data.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves the pyhealth Python package or a
healthcare-AI pipeline built from structured EHR, clinical text, medical codes,
images, signals, or multimodal samples. PyHealth 2.0 organizes work as:
dataset → task → processor/sample → model → trainer → metrics. Keep patient
identity out of train/validation/test overlap unless the experiment explicitly
requires another protocol.
Trainer, devices, checkpoints, and inference.InnerMap,
CrossMap, NLP, code/text/vision/audio/signal, and multimodal routes.After installing the package, verify the public import before accessing a clinical dataset:
python -c "import pyhealth; print('PyHealth import ok')"
python -c "from pyhealth.datasets import SampleDataset, split_by_patient, get_dataloader; from pyhealth.trainer import Trainer; print('core API ok')"
The package metadata requires Python >=3.12,<3.14. Install the base package
with pip install pyhealth; use pip install 'pyhealth[graph]' for
PyTorch-Geometric paths and pip install 'pyhealth[nlp]' for NLP metrics and
fuzzy matching. Use a compatible PyTorch build for the requested device; a CPU
import does not prove CUDA behavior.
Do not download MIMIC, eICU, OMOP, PhysioNet, MEDS, model-hub weights, mapping caches, or NLTK corpora unless the user has supplied authorization, access, and a bounded destination. Do not put PHI or credentials in generated fixtures. Use synthetic/local fixtures for API and schema checks. Treat training, benchmark, and notebook-scale examples as recipes until data size, runtime, and device are explicitly bounded.
Read troubleshooting for cross-cutting import, optional-dependency, data-access, device, and legacy-example failures. Read repo-provenance before deciding whether this skill matches a changed PyHealth checkout.