Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trailed-0.1.2.tar.gz (664.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

trailed-0.1.2-cp310-abi3-macosx_11_0_arm64.whl (450.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

trailed-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl (457.8 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file trailed-0.1.2.tar.gz.

File metadata

  • Download URL: trailed-0.1.2.tar.gz
  • Upload date:
  • Size: 664.5 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

Hashes for trailed-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4babf9335ebb957bf6ed36dfacbe0705ec5d4e687fa4e86cf3b0d802b127c509
MD5 80e832b65cd16d3f5ddbeb8c84253720
BLAKE2b-256 feda69d0e053b0c07f890276b6ea121079649a50ca8b69d71fef0c0f12b38f29

See more details on using hashes here.

File details

Details for the file trailed-0.1.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: trailed-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 450.5 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

Hashes for trailed-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e378d54c91e0fb450862d0e719c122e9b5eebdc699f90955b4db93eec324994
MD5 f5bb7aa134a9a454ce341dd48cb0974e
BLAKE2b-256 72c7f2fb6d43fdb718e7715aa78f9b5fb2e5fd37daa68e4341746cdd140a6b2b

See more details on using hashes here.

File details

Details for the file trailed-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for trailed-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3a462e31a248f55787e1e7d55682ab42515939796f231117960c5676b45d794b
MD5 0350248d30e957b8e7a4f9d4e712f6ce
BLAKE2b-256 b14840d16f5eb91c05b35ef123e6841a85c3e4a34a663a93e3ae942381231bae

See more details on using hashes here.

Provenance

The following attestation bundles were made for trailed-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yaml on Krv-Labs/trailed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page