TRAILED: Topological Regularization and Integrity Learning for EHR Data
Project description
TRAILED: Topological Regularization and Integrity Learning for EHR Data
Note: TRAILED is under active development. The current release provides the foundational ECT implementation. Healthcare-specific methods are in progress.
Topological representation learning for Electronic Health Record (EHR) data. Built on the differentiable Euler Characteristic Transform (ECT).
Installation
uv pip install trailed
# Optional extras
uv pip install trailed[sklearn] # scikit-learn transformers
uv pip install trailed[dataframe] # pandas/polars support
uv pip install trailed[all] # all dependencies
Quick Start
from trailed import compute_ect_from_numpy
ect = compute_ect_from_numpy(points, num_thetas=32, resolution=32)
import polars as pl
from trailed.tabular import compute_ect_from_polars
df = pl.DataFrame({"x": [0.1, 0.2, 0.3], "y": [0.1, 0.3, 0.2], "group": [0, 0, 1]})
ect = compute_ect_from_polars(df, coord_columns=["x", "y"], group_column="group")
import pandas as pd
from trailed.tabular import compute_ect_from_pandas
df = pd.DataFrame({"x": [0.1, 0.2, 0.3], "y": [0.1, 0.3, 0.2], "group": [0, 0, 1]})
ect = compute_ect_from_pandas(df, coord_columns=["x", "y"], group_column="group")
Documentation
Full documentation: krv-analytics.github.io/trailed
Acknowledgment
This project builds on the original dect implementation and accompanying research.
@inproceedings{Roell24a,
title = {Differentiable Euler Characteristic Transforms for Shape Classification},
author = {Ernst R{\"o}ell and Bastian Rieck},
year = 2024,
booktitle = {International Conference on Learning Representations},
eprint = {2310.07630},
archiveprefix = {arXiv},
primaryclass = {cs.LG},
repository = {https://github.com/aidos-lab/dect-evaluation},
url = {https://openreview.net/forum?id=MO632iPq3I},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trailed-0.1.1.tar.gz.
File metadata
- Download URL: trailed-0.1.1.tar.gz
- Upload date:
- Size: 663.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
047bd5b3cf506742ed4e8d5c16b48929a9855faad4d5f701d14643c4ea5491fe
|
|
| MD5 |
c58e1776007a54eb1185f18be52c1f15
|
|
| BLAKE2b-256 |
2b6386f93af0caf66343f224692a3ec8f68cf572c149146e515ca136f9e1602e
|
File details
Details for the file trailed-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: trailed-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 446.7 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df8ac8d3aeec0189df9c6a89eaa02767fcef47249bc20149ea6170ea7c547e9c
|
|
| MD5 |
09802d3b19d8bb5163a3585e1d9fba0e
|
|
| BLAKE2b-256 |
be24b644ffa960bc16092780dfbab1019de7f49dc2e5448e319c2cdaf50c0136
|