medpython 1.2.0__cp314-cp314-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of medpython might be problematic. Click here for more details.

@@ -0,0 +1,2 @@
1
+ Version: 1.13.0
2
+ Arguments: ['C:\\hostedtoolcache\\windows\\Python\\3.14.6\\x64\\Scripts\\delvewheel', 'repair', '--wheel-dir', 'wheelhouse/', 'dist/medpython-1.2.0-cp314-cp314-win_amd64.whl']
@@ -0,0 +1,201 @@
1
+ Metadata-Version: 2.4
2
+ Name: medpython
3
+ Version: 1.2.0
4
+ Summary: Medial EarlySign Python
5
+ Author: Alon Lanyado
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/Medial-EarlySign/medpython
8
+ Project-URL: Repository, https://github.com/Medial-EarlySign/medpython
9
+ Project-URL: Documentation, https://medial-earlysign.github.io/MR_Wiki/
10
+ Project-URL: Changelog, https://github.com/Medial-EarlySign/medpython/discussions/categories/announcements
11
+ Keywords: EMR,EHR,machine-learning,medicine,time-series,clinical,healthcare,clinical-data,medical,clinical-data-warehouse,tabular-data
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: C++
14
+ Classifier: Programming Language :: C
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Classifier: Topic :: Software Development :: Libraries
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENCE
24
+ Requires-Dist: numpy>=1.21.0
25
+ Requires-Dist: pandas
26
+ Requires-Dist: plotly
27
+ Requires-Dist: medpython-etl>=1.0.2
28
+ Dynamic: license-file
29
+
30
+ # Medial EarlySign Python Library
31
+
32
+
33
+ ![Pepy Total Downloads](https://img.shields.io/pepy/dt/medpython)
34
+ ![PyPI - License](https://img.shields.io/pypi/l/medpython)
35
+ ![GitHub contributors](https://img.shields.io/github/contributors-anon/Medial-EarlySign/medpython)
36
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/Medial-EarlySign/medpython)
37
+
38
+ ![Conda Version](https://anaconda.org/conda-forge/medpython/badges/version.svg)
39
+ ![Conda Downloads](https://anaconda.org/conda-forge/medpython/badges/downloads.svg)
40
+
41
+ [![GitHub Repo](https://img.shields.io/badge/github-repo-blue?logo=github)](https://github.com/Medial-EarlySign/medpython)
42
+ ![GitHub Repo stars](https://img.shields.io/github/stars/Medial-EarlySign/medpython)
43
+
44
+ **A note on our journey:** Medial EarlySign was a company that developed a proprietary platform for machine learning on electronic medical records. Following the company's liquidation, the decision was made to release the core software as an **open-source** project to allow the community to benefit from and build upon this technology. Please feel free to [reach me out](https://medial-earlysign.github.io/MR_Wiki/#community-and-contributions) in any case of an issue. I'm voluntarily holding this, so please be patients.
45
+
46
+ 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.
47
+
48
+ It was conceived as a **TensorFlow** for machine learning on medical data.
49
+
50
+ All software is now open-sourced under the MIT license. Some of the [models](http://medial-earlysign.github.io/MR_Wiki/Models) developed by Medial EarlySign that are currently in production are available exclusively through our partners.
51
+
52
+ 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](https://www.cms.gov/priorities/innovation/innovation-models/artificial-intelligence-health-outcomes-challenge).
53
+
54
+ ## Why Use This Platform?
55
+
56
+ * **High-Performance Processing:** Engineered for large-scale, sparse EMR time-series data where general-purpose libraries like pandas fall short.
57
+ * **Reusable Pipelines:** Save valuable engineering time by providing shareable, tested pipelines and methods.
58
+ * **Built-in Safeguards:** Mitigate common pitfalls like data leakage and time-series-specific overfitting.
59
+ * **Production-Ready:** Designed for easy deployment using Docker or minimal distroless Linux images. **FHIR Ready** with lightweight python script convert to AlgoMarker format in deployment.
60
+ * **Innovative Algorithms**: Access to state of the art algorithms for processing medical data, explainability, fairness, and more
61
+ - Read My Journey on [Explainability](https://medial-earlysign.github.io/MR_Wiki/Blog/explainability.html)
62
+
63
+ ## Core Components
64
+
65
+ The platform is built on three key pillars:
66
+
67
+ * **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.
68
+ * **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.
69
+ * **Medial Tools:** A suite of utilities for training, evaluation, and workflow management, including bootstrap analysis, fairness checks, and explainability. `MedPython` is the Python alternative to replace all those tools.
70
+
71
+ ## From Raw Data to Insight in Four Simple Steps
72
+
73
+ Our platform streamlines the development and deployment of clinical predictive models, transforming raw patient data into actionable insights. For live predictions (inference), you can use raw JSON data directly, bypassing the need for an optimized data store.
74
+
75
+ <img src="https://medial-earlysign.github.io/MR_Wiki/images/MES_Arch.png">
76
+
77
+ This structured approach ensures that data is processed efficiently, models are built systematically, and the results are both accurate and interpretable.
78
+
79
+ ### The Workflow
80
+
81
+ **1. Start with Raw Patient Data**
82
+
83
+ Begin with your data in a simple JSON format.
84
+
85
+ ```json
86
+ {
87
+ "patient_id": "1",
88
+ "data": {
89
+ "signals": [
90
+ {
91
+ "code": "Hemoglobin",
92
+ "unit": "g/dL",
93
+ "data": [
94
+ { "timestamp": [20240806], "value": ["14.1"] },
95
+ { "timestamp": [20250806], "value": ["14.5"] }
96
+ ]
97
+ },
98
+ {
99
+ "code": "Diagnosis",
100
+ "data": [
101
+ { "timestamp": [20240701], "value": ["ICD10_CODE:J20"] },
102
+ ...
103
+ ]
104
+ },
105
+ ...
106
+ ]
107
+ }
108
+ }
109
+ ```
110
+
111
+ Load it into our Optimized Store or use it "as is" in deployment.
112
+
113
+ **2. Define Your Label**
114
+
115
+ For each patient, and for any chosen prediction date (after which no future information is provided to the model), specify what the outcome label should be for training or testing
116
+
117
+ **3. Define Your ML Pipeline**
118
+
119
+ Configure your entire machine learning workflow from preprocessing and feature engineering to the final model using a single [JSON configuration file](https://medial-earlysign.github.io/MR_Wiki/Infrastructure%20Library/MedModel%20json%20format.html). This approach ensures your experiments are reproducible and easy to version.
120
+
121
+ **4. Get Explainable Predictions**
122
+
123
+ Train your model using the Python SDK and generate predictions with clear, interpretable explanations. [Example output](https://medial-earlysign.github.io/MR_Wiki/Tutorials/07.Deployment/index.html#how-to-use-the-deployed-algomarker).
124
+
125
+ This is an illustration of the final output in a visual format (Our infrastructure returns the data to create this):
126
+
127
+ <img src="https://medial-earlysign.github.io/MR_Wiki/images/Explainability.png">
128
+
129
+ For more details, refer to the [Tutorials](https://medial-earlysign.github.io/MR_Wiki/Tutorials).
130
+
131
+ ## Setup
132
+
133
+ You can quickly install the package using **pip**:
134
+
135
+ ```bash
136
+ pip install medpython
137
+ ```
138
+
139
+ or Through conda
140
+ ```bash
141
+ conda install -c conda-forge medpython
142
+ ```
143
+
144
+ Install and compile from github source code:
145
+ ```bash
146
+ python -m pip install -v "medpython @ git+https://github.com/Medial-EarlySign/medpython.git/#subdirectory=Internal/MedPyExport/generate_binding"
147
+ ```
148
+
149
+ **System Requirements**
150
+
151
+ **Platform Support for MedPython**
152
+
153
+ | Platform | x86_64 (Intel/AMD) | aarch64 (ARM / Apple Silicon) |
154
+ | :--- | :--- | :--- |
155
+ | **Linux (glibc)** | ✅ Pre-built (Py 3.10-3.14) | ✅ Pre-built (Py 3.13) |
156
+ | **Linux (Alpine/musl)**| 🛠️ Compile Required | 🛠️ Compile Required |
157
+ | **Windows** | ✅ Pre-built (Py 3.11-3.14) | 🛠️ Compile Required |
158
+ | **macOS** | 🛠️ Compile Required | ✅ Pre-built (Py 3.11-3.14) |
159
+
160
+ > **Note:** For any Compile Required or either not listed as Pre-built. Compliation is required.
161
+ > Compilation in Alpine was also tested, but pre-builds are not provided.
162
+
163
+ * **Supported Systems**: This linux pre-built version is available for **modern Linux** distributions (specifically `manylinux2014` equivalents, such as CentOS >= 7 or Ubuntu >= 13.04).
164
+
165
+ **Compilation for Other Systems**
166
+ More information in [Installation](http://medial-earlysign.github.io/MR_Wiki/Installation/)
167
+
168
+ ## Release Notes
169
+ Please refer to [Release Notes](https://github.com/Medial-EarlySign/medpython/discussions/categories/announcements)
170
+
171
+ ## Usage
172
+ ```python
173
+ import med
174
+ from AlgoMarker import AlgoMarker
175
+ from ETL_Infra import prepare_final_signals, prepare_dicts, finish_prepare_load, create_train_signal
176
+ ```
177
+
178
+ More information on usage:
179
+
180
+ * [ETL_Infra](https://medial-earlysign.github.io/MR_Wiki/Tutorials/01.ETL%20Tutorial) - To load data into medpython data format
181
+ - [API Documentation](https://medial-earlysign.github.io/MR_Tools)
182
+ * [AlgoMarker](https://medial-earlysign.github.io/MR_Wiki/Infrastructure%20Library/Medial%20Tools/Python/Python%20AlgoMarker%20API%20Server.md#simple-usage-example)
183
+ - From usage in deployment/lighter API interface. Usefull for accessing prebuild models. [API Documentation](https://medial-earlysign.github.io/MR_Tools/AlgoMarker.html)
184
+ * [med library](https://medial-earlysign.github.io/MR_Wiki/Infrastructure%20Library/Medial%20Tools/Python/Examples.md)
185
+ - Full library from training new models or using with existing models. [Complete Example: From Data to Model](https://medial-earlysign.github.io/MR_Wiki/#complete-example-from-data-to-model)
186
+ - [API Documentation](https://medial-earlysign.github.io/MR_Tools)
187
+
188
+ ## Getting Started
189
+
190
+ * **Build a new model:** Follow the step-by-step [Tutorials](https://medial-earlysign.github.io/MR_Wiki/Tutorials/index.html) to build a model from scratch.
191
+ * **Use an existing model:** Browse the collection of [Models](https://medial-earlysign.github.io/MR_Wiki/Models/index.html).
192
+
193
+ ## Community and Contributions
194
+
195
+ This is an open-source project, and we welcome contributions from the community.
196
+
197
+ * **Report issues or ask questions:** Please use our [Github Discussions](https://github.com/Medial-EarlySign/medpython/discussions).
198
+ * **Contribute to the code:** Check out our repositories:
199
+ * [MedPython](https://github.com/Medial-EarlySign/medpython): The core infrastructure libraries.
200
+ * [MR_Tools](https://github.com/Medial-EarlySign/MR_Tools): Tools and pipelines built on top of medpython.
201
+ * [MR_Scripts](https://github.com/Medial-EarlySign/MR_Scripts): Dev Ops tools
@@ -0,0 +1,16 @@
1
+ AlgoMarker/AlgoMarker.py,sha256=6lSU0Mnp05fciRgLfTw_C7ms5a56uAwzXbWDH0zt4i4,37214
2
+ AlgoMarker/__init__.py,sha256=iDQkNa79lvOjEajxtCrv-b1_neEtEeVoDq8k2THOt6Q,367
3
+ med/med.py,sha256=AenbdrBSyAYCpPgXawITvc4jlJJEkPkhBx2unORFOT0,105
4
+ med/medpython.py,sha256=H_XTxFDeazMMzu9TA50p13CW3R1H7_04nBXPhzyuT2M,163406
5
+ med/_medpython.pyd,sha256=uyAPrqVOG8jsNDsajMWdpAYf4IVkRAkzhKNf9Ig2Ryg,15948800
6
+ med/__init__.py,sha256=8QeAUXymL4e3BppbwyqS5wr8lj8m-i6N5jjKG6c5KMI,351
7
+ med/Release/_medpython.pyd,sha256=uyAPrqVOG8jsNDsajMWdpAYf4IVkRAkzhKNf9Ig2Ryg,15948800
8
+ medpython-1.2.0.dist-info/DELVEWHEEL,sha256=vople1zytrPA0m2e4G760umSvegvkNWldiCYFvw7N9w,192
9
+ medpython-1.2.0.dist-info/METADATA,sha256=WOxNGL5uzDD3cumMa6dSq46hyGvlqMvNssZYz_ZxPKY,10965
10
+ medpython-1.2.0.dist-info/RECORD,,
11
+ medpython-1.2.0.dist-info/top_level.txt,sha256=I6FnasaC90tWEgjIAA3FWvWpH8a3zn4Nqccq9BO23UM,15
12
+ medpython-1.2.0.dist-info/WHEEL,sha256=jhxrRP3tdEfm7toB1X7dl5x6f0bu6Tve2cWwIdkbL8U,101
13
+ medpython-1.2.0.dist-info/licenses/LICENCE,sha256=axQsDqvVL2FC8NPB93hKJTzXPwG2Mm82s-kDv6lE4Ds,1087
14
+ medpython.libs/concrt140-b5f14f08cfeabe717a4945429e207076.dll,sha256=OIwoBCURFVjumW0IMoM_SbYe2pmDwZWCjphISF5vxeQ,353792
15
+ medpython.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll,sha256=pMIim9wqKmMKzcCVtNhgCOXD47x3cxdDVPPaT1vrnN4,575056
16
+ medpython.libs/vcomp140-f96f3a14d88d8846f31f3ab38a490304.dll,sha256=-W86FNiNiEbzHzqzikkDBM59bk9w-uQwTGPlnHrqLTA,213072
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win_amd64
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Medial EarlySign
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ AlgoMarker
2
+ med