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.
  • State of The Art Algorithms Developed state of the art algorithms for EMR use cases, explainablity and fairness and more...

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). The software also compiles in Windows but you will need to install Boost yourself. I hope shortl to provide windows pre-compiled builds through conda.
  • 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. Currently the library was compiled/tested in linux and windows only.

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.4.tar.gz (56.4 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.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

medpython-1.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

medpython-1.0.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

medpython-1.0.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

medpython-1.0.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (44.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: medpython-1.0.4.tar.gz
  • Upload date:
  • Size: 56.4 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.4.tar.gz
Algorithm Hash digest
SHA256 15059c3c9f15e3f92c373cf63dc4a7943c448ab6a0b0c71cdb7a94e20430dea2
MD5 1d51fd7a4a0ee4272140a982c862674f
BLAKE2b-256 dfdedb72081d8ddda0c96b1177452bf04649fc5abf9b0afba21ced58d24c2c34

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.4.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.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c8541e07bfe5db2cedeaff5378bbab8e040bd95e932fcbe093564cdac8c60320
MD5 9e02a5b19182aa5aa66bb0a41f567ab0
BLAKE2b-256 2281b4b7607cc5fa691e0080be17855d7f28ea380bed5e793af8ed9a4c6f7c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.4-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.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 886b2f8c27b32e6abbbb3f83461adf08ac9437a9a1ab407c392438522630bd1b
MD5 a96499d9c9e4acf5c044ca5d5df9bb5a
BLAKE2b-256 bd7ab736c5c08b00574b27c40e2ec2c69ea05fdb32b06158d5b6b4c2b47c49ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.4-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.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0f1b4f063139649a837afb98706a9a74347356b3ceb4779bbfc61828a5eb2ce8
MD5 c0b76006b3ab2a2fa67d57722f446708
BLAKE2b-256 b0e930219e4d1af0cbd547fa2ba84877968868a41919404f2338ae46975ba1c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.4-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.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1406712518372f750d60ec0ed11a9bcf90551f111c6e6b8bcc6e3c03079f5c3f
MD5 aeaa2aa81764b38a53cd4c2ded95459c
BLAKE2b-256 8f300689132681a101f77dadd297b0be0da4dc9173fdee79f13fc04dac794bd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.4-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.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for medpython-1.0.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8000d13c8df5115676b185240d1134d8e0278ac27b77e761a5225ae5e3816239
MD5 a8a5082576cdab82faa90826e62da191
BLAKE2b-256 080ed2569fe192ac58352e31622552618563c58e9a6f5863eb994ef18400de09

See more details on using hashes here.

Provenance

The following attestation bundles were made for medpython-1.0.4-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