This toolbox aims to simplify the construction of compartmental models and the inference of their parameters
Project description
Inference of Compartmental Models toolbox
Leverage the power of JAX libraries for PyMC models
This toolbox aims to simplify the construction of compartmental models and the inference of their parameters.
The aim isn't to provide a complete package that will build models from A to Z, but rather provide different helper functions examples and guidelines to help leverage modern python packages like JAX, Diffrax and PyMC to build, automatically differentiate and fit compartmental models.
A central part of the toolbox is the possibility to wrap JAX functions to be used in PyMC models (see [here](https://icomo.readthedocs. io/en/stable/api/jax2pytensor.html)), which is used tro wrap the Diffrax ODE solvers, but might be also useful for other projects.
- Documentation: https://icomo.readthedocs.io.
Features
- Facilitate the construction of compartmental models by only defining flow between compartments, and automatically generating the corresponding ODEs.
- Plot the graph of the compartmental model to verify the correctness of the model.
- Integrate the ODEs using diffrax, automatically generating the Jacobian of the parameters of the ODE
- Fit the parameters using minimization algorithms or build a Bayesian model using PyMC.
Credits
Logo by Fabian Mikulasch
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icomo-1.0.3.tar.gz.
File metadata
- Download URL: icomo-1.0.3.tar.gz
- Upload date:
- Size: 428.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f307082a6d6bb17fdf90d08279f0b124ce3a142ea8abcaf9afa853d9d2e7cd5c
|
|
| MD5 |
b94d7e47d0650a7d36577605a8f3039e
|
|
| BLAKE2b-256 |
f8d9d5461a3e72822836a5e070e7ea394621cbc7f1f2f25ca81a54be44d38bad
|
File details
Details for the file icomo-1.0.3-py3-none-any.whl.
File metadata
- Download URL: icomo-1.0.3-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef7d1f9614cec6ace018c91e1f25e95a6fcf31e292079c786ef31a5d0c6af0ac
|
|
| MD5 |
d6462d25d6a7049306738c0043efca6a
|
|
| BLAKE2b-256 |
2cb16a82465efe08a3aa3a380d5f750e43926e6f6383e925222324e31569c734
|