Installation¶
Install from PyPI¶
Or with uv:
Development Install¶
Clone the repository and install with development dependencies:
This installs the package in editable mode along with testing and linting tools (pytest, ruff).
Building Documentation Locally¶
To build and preview the documentation site:
This starts a local server at http://127.0.0.1:8000 with live-reloading.
Hardware¶
DeepECG-Kit automatically detects available hardware:
| Device | Detection |
|---|---|
| CUDA GPU | Used automatically if torch.cuda.is_available() |
| Apple MPS | Used automatically if torch.backends.mps.is_available() |
| CPU | Fallback when no GPU is available |
You can override device selection with --accelerator cpu|gpu|mps (CLI) or device="cpu" (Python API).
Requirements¶
- Python >= 3.8
- PyTorch >= 1.9.0
- See pyproject.toml for the full dependency list