contextualized-ml


Namecontextualized-ml JSON
Version 0.2.7 PyPI version JSON
download
home_page
SummaryA statistical machine learning toolbox for estimating models, distributions, and functions with sample-specific parameters.
upload_time2023-12-30 00:05:39
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords contextual modeling graphical models machine learning meta-learning multitask learning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Preview](docs/logo.png)
#

![License](https://img.shields.io/github/license/cnellington/contextualized.svg?style=flat-square)
![python](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11-blue)
[![PyPI version](https://badge.fury.io/py/contextualized-ml.svg)](https://badge.fury.io/py/contextualized-ml)
![Maintenance](https://img.shields.io/maintenance/yes/2023?style=flat-square)
[![Downloads](https://pepy.tech/badge/contextualized-ml)](https://pepy.tech/project/contextualized-ml)
![pylint Score](pylint.svg)
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>


An easy-to-use machine learning toolbox for estimating 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](docs/models/easy_regression.ipynb) 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](https://contextualized.ml/docs) for more examples.

### Important links

- [Documentation](https://contextualized.ml/docs)
- [Pypi package index](https://pypi.python.org/pypi/contextualized-ml)


## 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](https://github.com/cnellington/Contextualized/blob/main/CONTRIBUTING.md) for more information about the process of contributing to this project.

<table>
<tr>
<td><a href="http://bio-contextualized.ml/">bio-contextualized.ml</a></td>
<td>Contextualized and analytical tools for modeling medical and biological heterogeneity</td>
</tr>
</table>


## Thanks to all our contributors

<a href="https://github.com/cnellington/contextualized/graphs/contributors">
  <img src="https://contributors-img.web.app/image?repo=cnellington/contextualized" />
</a>

Contextualized ML was originally implemented by [Caleb Ellington](https://calebellington.com/) (CMU) and [Ben Lengerich](http://web.mit.edu/~blengeri/www) (MIT).

Many people have helped. Check out [ACKNOWLEDGEMENTS.md](https://github.com/cnellington/Contextualized/blob/main/ACKNOWLEDGEMENTS.md)!



## Related Publications and Pre-prints
- [Contextualized Machine Learning](https://arxiv.org/abs/2310.11340)
- [Contextualized Networks Reveal Heterogeneous Transcriptomic Regulation in Tumors at Sample-Specific Resolution](https://www.biorxiv.org/content/10.1101/2023.12.01.569658v1)
- [Contextualized Policy Recovery: Modeling and Interpreting Medical Decisions with Adaptive Imitation Learning](https://arxiv.org/abs/2310.07918)
- [Automated Interpretable Discovery of Heterogeneous Treatment Effectiveness: A COVID-19 Case Study](https://www.sciencedirect.com/science/article/pii/S1532046422001022)
- [NOTMAD: Estimating Bayesian Networks with Sample-Specific Structures and Parameters](http://arxiv.org/abs/2111.01104)
- [Discriminative Subtyping of Lung Cancers from Histopathology Images via Contextual Deep Learning](https://www.medrxiv.org/content/10.1101/2020.06.25.20140053v1.abstract)
- [Personalized Survival Prediction with Contextual Explanation Networks](http://arxiv.org/abs/1801.09810)
- [Contextual Explanation Networks](https://jmlr.org/papers/v21/18-856.html)


## Videos
- [Cold Spring Harbor Laboratory: Contextualized Graphical Models Reveal Sample-Specific Transcriptional Networks for 7000 Tumors](https://www.youtube.com/watch?v=MTcjFK-YwCw)
- [Sample-Specific Models for Interpretable Analysis with Applications to Disease Subtyping](http://www.birs.ca/events/2022/5-day-workshops/22w5055/videos/watch/202205051559-Lengerich.html)

## Contact Us
Please get in touch with any questions, feature requests, or applications by using the [GitHub discussions page](https://github.com/cnellington/Contextualized/discussions).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "contextualized-ml",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "contextual modeling,graphical models,machine learning,meta-learning,multitask learning",
    "author": "",
    "author_email": "Caleb Ellington <cellingt@cs.cmu.edu>, Ben Lengerich <blengeri@mit.edu>",
    "download_url": "https://files.pythonhosted.org/packages/b8/43/ec14161bb8bd73b99db77b986295fdcc6e848264be2682fbb58929e6aa58/contextualized_ml-0.2.7.tar.gz",
    "platform": null,
    "description": "![Preview](docs/logo.png)\n#\n\n![License](https://img.shields.io/github/license/cnellington/contextualized.svg?style=flat-square)\n![python](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11-blue)\n[![PyPI version](https://badge.fury.io/py/contextualized-ml.svg)](https://badge.fury.io/py/contextualized-ml)\n![Maintenance](https://img.shields.io/maintenance/yes/2023?style=flat-square)\n[![Downloads](https://pepy.tech/badge/contextualized-ml)](https://pepy.tech/project/contextualized-ml)\n![pylint Score](pylint.svg)\n<a href=\"https://github.com/psf/black\"><img alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"></a>\n\n\nAn easy-to-use machine learning toolbox for estimating models, distributions, and functions with context-specific parameters.\n\nContext-specific parameters:\n- Find hidden heterogeneity in data -- are all samples the same?\n- Identify context-specific predictors -- are there different reasons for outcomes?\n- Enable domain adaptation -- can learned models extrapolate to new contexts?\n\n\n## Quick Start\n\n### Installation\n```\npip install contextualized-ml\n```\n\nTake a look at the [easy demo](docs/models/easy_regression.ipynb) for a quickstart with sklearn-style wrappers.\n\n### Build a Contextualized Model\n```\nfrom contextualized.easy import ContextualizedRegressor\nmodel = ContextualizedRegressor()\nmodel.fit(C, X, Y)\n```\n\n### Predict Context-Specific Parameters\n```\nmodel.predict_params(C)\n```\n\nSee the [docs](https://contextualized.ml/docs) for more examples.\n\n### Important links\n\n- [Documentation](https://contextualized.ml/docs)\n- [Pypi package index](https://pypi.python.org/pypi/contextualized-ml)\n\n\n## Contextualized Family\nContext-dependent modeling is a universal problem, and every domain presents unique challenges and opportunities.\nHere are some layers that others have added on top of Contextualized.\nFeel free to add your own page(s) by sending a PR or request an improvement by creating an issue. See [CONTRIBUTING.md](https://github.com/cnellington/Contextualized/blob/main/CONTRIBUTING.md) for more information about the process of contributing to this project.\n\n<table>\n<tr>\n<td><a href=\"http://bio-contextualized.ml/\">bio-contextualized.ml</a></td>\n<td>Contextualized and analytical tools for modeling medical and biological heterogeneity</td>\n</tr>\n</table>\n\n\n## Thanks to all our contributors\n\n<a href=\"https://github.com/cnellington/contextualized/graphs/contributors\">\n  <img src=\"https://contributors-img.web.app/image?repo=cnellington/contextualized\" />\n</a>\n\nContextualized ML was originally implemented by [Caleb Ellington](https://calebellington.com/) (CMU) and [Ben Lengerich](http://web.mit.edu/~blengeri/www) (MIT).\n\nMany people have helped. Check out [ACKNOWLEDGEMENTS.md](https://github.com/cnellington/Contextualized/blob/main/ACKNOWLEDGEMENTS.md)!\n\n\n\n## Related Publications and Pre-prints\n- [Contextualized Machine Learning](https://arxiv.org/abs/2310.11340)\n- [Contextualized Networks Reveal Heterogeneous Transcriptomic Regulation in Tumors at Sample-Specific Resolution](https://www.biorxiv.org/content/10.1101/2023.12.01.569658v1)\n- [Contextualized Policy Recovery: Modeling and Interpreting Medical Decisions with Adaptive Imitation Learning](https://arxiv.org/abs/2310.07918)\n- [Automated Interpretable Discovery of Heterogeneous Treatment Effectiveness: A COVID-19 Case Study](https://www.sciencedirect.com/science/article/pii/S1532046422001022)\n- [NOTMAD: Estimating Bayesian Networks with Sample-Specific Structures and Parameters](http://arxiv.org/abs/2111.01104)\n- [Discriminative Subtyping of Lung Cancers from Histopathology Images via Contextual Deep Learning](https://www.medrxiv.org/content/10.1101/2020.06.25.20140053v1.abstract)\n- [Personalized Survival Prediction with Contextual Explanation Networks](http://arxiv.org/abs/1801.09810)\n- [Contextual Explanation Networks](https://jmlr.org/papers/v21/18-856.html)\n\n\n## Videos\n- [Cold Spring Harbor Laboratory: Contextualized Graphical Models Reveal Sample-Specific Transcriptional Networks for 7000 Tumors](https://www.youtube.com/watch?v=MTcjFK-YwCw)\n- [Sample-Specific Models for Interpretable Analysis with Applications to Disease Subtyping](http://www.birs.ca/events/2022/5-day-workshops/22w5055/videos/watch/202205051559-Lengerich.html)\n\n## Contact Us\nPlease get in touch with any questions, feature requests, or applications by using the [GitHub discussions page](https://github.com/cnellington/Contextualized/discussions).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A statistical machine learning toolbox for estimating models, distributions, and functions with sample-specific parameters.",
    "version": "0.2.7",
    "project_urls": {
        "Homepage": "https://contextualized.ml/",
        "Source": "https://github.com/cnellington/Contextualized/"
    },
    "split_keywords": [
        "contextual modeling",
        "graphical models",
        "machine learning",
        "meta-learning",
        "multitask learning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "604581a78065c510aad4ff5b3a850ec583244424c4ca30466d5cdeb6c53c41a8",
                "md5": "9960339ab55f41225a423f2bf6db0244",
                "sha256": "f461a8e0d54e4f4b45477d1d2535b482e9cf093ba098cec3fbc35cb2ad322020"
            },
            "downloads": -1,
            "filename": "contextualized_ml-0.2.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9960339ab55f41225a423f2bf6db0244",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 73032,
            "upload_time": "2023-12-30T00:05:37",
            "upload_time_iso_8601": "2023-12-30T00:05:37.355642Z",
            "url": "https://files.pythonhosted.org/packages/60/45/81a78065c510aad4ff5b3a850ec583244424c4ca30466d5cdeb6c53c41a8/contextualized_ml-0.2.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b843ec14161bb8bd73b99db77b986295fdcc6e848264be2682fbb58929e6aa58",
                "md5": "b2ad1f8670d2418f9b2d2a00ee607b07",
                "sha256": "ae158db967a6fc581a85ac788976cf082d3c73894d4a6da6e5af702a42d9b2f5"
            },
            "downloads": -1,
            "filename": "contextualized_ml-0.2.7.tar.gz",
            "has_sig": false,
            "md5_digest": "b2ad1f8670d2418f9b2d2a00ee607b07",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 18075932,
            "upload_time": "2023-12-30T00:05:39",
            "upload_time_iso_8601": "2023-12-30T00:05:39.962217Z",
            "url": "https://files.pythonhosted.org/packages/b8/43/ec14161bb8bd73b99db77b986295fdcc6e848264be2682fbb58929e6aa58/contextualized_ml-0.2.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-30 00:05:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cnellington",
    "github_project": "Contextualized",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "contextualized-ml"
}
        
Elapsed time: 0.16959s