Skip to main content
logo

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.

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.

Citation

If you use this toolbox in your research, please find the citation information on the right sidebar.

Credits

Logo by Fabian Mikulasch

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

icomo-1.0.4.tar.gz (530.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

icomo-1.0.4-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icomo-1.0.4.tar.gz
  • Upload date:
  • Size: 530.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for icomo-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ad13b8055a2e79f96949beb0ff72fc7734bd6f23e054109b7a106b4c1d2ef0fb
MD5 5217aa50ac0d723a0a2677a1fb6d85f4
BLAKE2b-256 6d59f69af13a3ceba1eab86d9ab8c5ff53d812bf3ce017de398595fb7e51b9bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for icomo-1.0.4.tar.gz:

Publisher: release.yaml on Priesemann-Group/icomo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file icomo-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: icomo-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for icomo-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc49a96900d4eea86c45de25dd5bb7392c3aeb5261179b4c547e15d45edf2ea
MD5 77425ebdc82a6fc95af4223c35830f80
BLAKE2b-256 bb62dec446161c029b8124bc6fa6466885389d45cecd38143b231c430a6dd632

See more details on using hashes here.

Provenance

The following attestation bundles were made for icomo-1.0.4-py3-none-any.whl:

Publisher: release.yaml on Priesemann-Group/icomo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 files

1.0.3

2 files

1.0.1

2 files

1.0.0

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page