Skip to main content

Medial EarlySign Python

Project description

Medial EarlySign Python Library

Pepy Total Downloads PyPI - License GitHub contributors GitHub commit activity

GitHub Repo GitHub Repo stars

Our platform is designed to transform complex, semi-structured Electronic Medical Records (EMR) into machine-learning-ready data and reproducible model pipelines. The framework is optimized for the unique challenges of sparse, time-series EMR data, delivering low memory usage and high-speed processing at scale.

It was conceived as a TensorFlow for machine learning on medical data.

All software is now open-sourced under the MIT license. Some of the models developed by Medial EarlySign that are currently in production are available exclusively through our partners.

The framework was battle-tested in production across multiple healthcare sites and was a key component of an award-winning submission to the CMS AI Health Outcomes Challenge.

Why Use This Platform?

  • High-Performance Processing: Engineered for large-scale, sparse EMR time-series data where general-purpose libraries like pandas fall short.
  • Reusable Pipelines: Save valuable engineering time by providing shareable, tested pipelines and methods.
  • Built-in Safeguards: Mitigate common pitfalls like data leakage and time-series-specific overfitting.
  • Production-Ready: Designed for easy deployment using Docker or minimal distroless Linux images.

Core Components

The platform is built on three key pillars:

  • MedRepository: A compact, efficient data repository and API for storing and accessing EMR signals. Querying categorical signals like perscriptions and diagnosis in an easy and efficient API.
  • MedModel: An end-to-end machine learning pipeline that takes data from MedRepository or JSON EMR inputs to produce predictions and explainability outputs. It supports both training and inference.
  • Medial Tools: A suite of utilities for training, evaluation, and workflow management, including bootstrap analysis, fairness checks, and explainability.

Setup

You can quickly install the package using pip:

pip install medpython

System Requirements

  • Supported Systems: This pre-built version is available for modern Linux distributions (specifically manylinux2014 equivalents, such as CentOS >= 7 or Ubuntu >= 13.04).
  • Python: Requires Python 3.10 through 3.14

Compilation for Other Systems If you're using an older Linux or a different platform/Python version >= 3.8, you'll need to compile the package yourself.

  • Note on Compilation: Ensure the Boost libraries are installed. For a local setup, set the environment variable BOOST_DISABLE_STATIC=1 to link against shared Boost libraries (The reason is that your system static libraries weren't compiled with -fPIC flag, so you can't use them inside python module):
export BOOST_DISABLE_STATIC=1

You can also set Boost installation directory with BOOST_ROOT environment variable if it is not part of the system libraries.

Usage

import med
from AlgoMarker import AlgoMarker
from ETL_Infra import prepare_final_signals, prepare_dicts, finish_prepare_load, create_train_signal

More information on usage:

Getting Started

  • Build a new model: Follow the step-by-step Tutorials to build a model from scratch.
  • Use an existing model: Browse the collection of Models.

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

medpython-1.0.3.tar.gz (56.8 MB view details)

Uploaded Source

Built Distributions

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

medpython-1.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

medpython-1.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

medpython-1.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

medpython-1.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

medpython-1.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file medpython-1.0.3.tar.gz.

File metadata

  • Download URL: medpython-1.0.3.tar.gz
  • Upload date:
  • Size: 56.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for medpython-1.0.3.tar.gz
Algorithm Hash digest
SHA256 73a5c1e8415b31975e6c9f07bb9d0f6b7a4f287e2568ff22b054a9ae93c0d50e
MD5 a56df59cd5843a88b89c413f9abd67db
BLAKE2b-256 d447a3d7739435f427b050fcbc104fe490f2b2d6f095ed8d61790d6d6fc7dd0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.3.tar.gz:

Publisher: build_py.yaml on Medial-EarlySign/MR_Scripts

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

File details

Details for the file medpython-1.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d5a27d9b35ad8bea2aed4c8b05404ea0e1303fe587d32c69bbe7405e59207564
MD5 c7a0dde6b386263fd666a74345fdb072
BLAKE2b-256 3a77ed0e539c61b244a7d835bbfc53c67c9d75d855fc25e88274c5adb11bd555

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_py.yaml on Medial-EarlySign/MR_Scripts

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

File details

Details for the file medpython-1.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 683fe90592c317c53c18914f2db833853614c9bce57daec0414fb1e3836dcf93
MD5 1666b8b416a5c670e622f5499c777c11
BLAKE2b-256 e3191042eb52f5776334af5622f3a5c022501c5f55ae682e0eb43e46bf1ad930

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_py.yaml on Medial-EarlySign/MR_Scripts

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

File details

Details for the file medpython-1.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5d6d0893adc58e8d63b56d7d64082eeb7527e115711665a214f2347483ca3a32
MD5 4c048541e5f8a67c5600964a961af794
BLAKE2b-256 f2b684ec9b3dc392ed898eb7ef717be4a50a20375439408f09188a24eead17b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_py.yaml on Medial-EarlySign/MR_Scripts

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

File details

Details for the file medpython-1.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1da672733e851366c6bdde76dd19b4e5e1a0f174336c6c6d505e13cea9641296
MD5 32ca7ec9f0838d8bbc6bd90eb59e5570
BLAKE2b-256 1e7acb55e00b41fa2ea84d0daf3eceae8a60a27e467ab72e14bbf9d66c7098b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_py.yaml on Medial-EarlySign/MR_Scripts

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

File details

Details for the file medpython-1.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4be94af53a5d42806af7c5b44820a80bf6cc8fb770272114c6f9bf6b7848b8d3
MD5 c9819ba168d1a0337659f349ba00d148
BLAKE2b-256 84218d7d0d66fe369914f6c3e6c51ead20676d76887499a1a2bc80912dee1240

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_py.yaml on Medial-EarlySign/MR_Scripts

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