A statistical machine learning toolbox for estimating models, distributions, and functions with sample-specific parameters.
Project description
An SKLearn-style toolbox for estimating and analyzing models, distributions, and functions with context-specific parameters.
Context-specific parameters:
- Find hidden heterogeneity in data -- are all samples the same?
- Identify context-specific predictors -- are there different reasons for outcomes?
- Enable domain adaptation -- can learned models extrapolate to new contexts?
Quick Start
Installation
pip install contextualized-ml
Take a look at the easy demo for a quickstart with sklearn-style wrappers.
Build a Contextualized Model
from contextualized.easy import ContextualizedRegressor
model = ContextualizedRegressor()
model.fit(C, X, Y)
Predict Context-Specific Parameters
model.predict_params(C)
See the docs for more examples.
Important links
Contextualized Family
Context-dependent modeling is a universal problem, and every domain presents unique challenges and opportunities. Here are some layers that others have added on top of Contextualized. Feel free to add your own page(s) by sending a PR or request an improvement by creating an issue. See CONTRIBUTING.md for more information about the process of contributing to this project.
bio-contextualized.ml | Contextualized and analytical tools for modeling medical and biological heterogeneity |
Thanks to all our contributors
Contextualized ML was originally implemented by Caleb Ellington (CMU) and Ben Lengerich (MIT).
Many people have helped. Check out ACKNOWLEDGEMENTS.md!
Related Publications and Pre-prints
- Contextualized Machine Learning
- Contextualized Networks Reveal Heterogeneous Transcriptomic Regulation in Tumors at Sample-Specific Resolution
- Contextualized Policy Recovery: Modeling and Interpreting Medical Decisions with Adaptive Imitation Learning
- Automated Interpretable Discovery of Heterogeneous Treatment Effectiveness: A COVID-19 Case Study
- NOTMAD: Estimating Bayesian Networks with Sample-Specific Structures and Parameters
- Discriminative Subtyping of Lung Cancers from Histopathology Images via Contextual Deep Learning
- Personalized Survival Prediction with Contextual Explanation Networks
- Contextual Explanation Networks
Videos
- Cold Spring Harbor Laboratory: Contextualized Graphical Models Reveal Sample-Specific Transcriptional Networks for 7000 Tumors
- Sample-Specific Models for Interpretable Analysis with Applications to Disease Subtyping
Contact Us
Please get in touch with any questions, feature requests, or applications by using the GitHub discussions page.
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
Built Distribution
File details
Details for the file contextualized_ml-0.2.8.tar.gz
.
File metadata
- Download URL: contextualized_ml-0.2.8.tar.gz
- Upload date:
- Size: 18.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0cd5ab2ff7db316fa1a428a9f9cc22374acbe05370c42c33a31491cf3ee43c |
|
MD5 | 0a56f042e78e25f51545c08f5807612c |
|
BLAKE2b-256 | 9a9706bccae785602dd95a353be2e972c20293ac08f6aa9c2b32c3506ec45ec7 |
File details
Details for the file contextualized_ml-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: contextualized_ml-0.2.8-py3-none-any.whl
- Upload date:
- Size: 71.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6a1241388ce59768eff9ba4915e1fba26b878b7fe2deb8ebce3bf8f976a466f |
|
MD5 | f73aae31ad7544bdec91a4deb38c8293 |
|
BLAKE2b-256 | 30ddb9d0b8a54a4cf00c923e905bca9e3a00afdf9a63e7223335c9a883e2c1ab |