A home for new additions to PyMC, which may include unusual probability distribitions, advanced model fitting algorithms, or any code that may be inappropriate to include in the pymc repository, but may want to be made available to users.
Project description
Welcome to pymc-extras
PyMC Extras extends PyMC with additional distributions, inference methods, and model transformations. It is maintained by the PyMC team and hosts functionality that is too specialized for the core library, but useful enough that you shouldn't have to write it yourself.
Highlights include:
- Automatic marginalization: exact for finite discrete and conjugate variables, approximate via the Laplace approximation
- Alternative inference methods: Pathfinder, DADVI, INLA, Laplace approximation, and better MAP estimation
- Statespace models: SARIMAX, VARMAX, ETS, and structural time series with Kalman filtering
- Additional distributions such as
DiscreteMarkovChain,GeneralizedPoisson, andGenExtreme
pymc-extras mirrors the namespaces in pymc to make usage and migration as easy as possible.
For example, distributions are used exactly like those in pymc:
import pymc as pm
import pymc_extras as pmx
with pm.Model():
xi = pm.HalfNormal("xi", 0.2)
pmx.GenExtreme("llik", mu=1, sigma=0.5, xi=xi, observed=data)
See the documentation for the full API reference.
Installation
pip install pymc-extras
or for the development version:
pip install git+https://github.com/pymc-devs/pymc-extras.git
Questions
What belongs in pymc-extras?
- statistical methods, for example step methods or model construction helpers
- distributions that are tricky to sample from or test
- specialized fitting methods or distributions
- any code that requires additional optimization before it can be used in practice
Functionality that proves widely useful may graduate to the main pymc repository.
What does not belong in pymc-extras?
- Case studies
- Implementations that cannot be applied generically, for example because they are tied to variables from a toy example
Contributing
We welcome contributions! Check out the contributing guidelines to get started.
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 pymc_extras-0.13.0.tar.gz.
File metadata
- Download URL: pymc_extras-0.13.0.tar.gz
- Upload date:
- Size: 624.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf36923c67acf0c9beaa20ce5d00d256a44498ab6695aaebf26f899005370f10
|
|
| MD5 |
3c46a948570b2ba3d5c4334c07bb2e65
|
|
| BLAKE2b-256 |
ba0fb49b622c8f899d7287d2ea05a0e00b02fbdb9794252ee6975c5fa06e375f
|
Provenance
The following attestation bundles were made for pymc_extras-0.13.0.tar.gz:
Publisher:
pypi.yml on pymc-devs/pymc-extras
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymc_extras-0.13.0.tar.gz -
Subject digest:
bf36923c67acf0c9beaa20ce5d00d256a44498ab6695aaebf26f899005370f10 - Sigstore transparency entry: 2163569535
- Sigstore integration time:
-
Permalink:
pymc-devs/pymc-extras@811d0418103e517f3a4f791d4d88ea206085255e -
Branch / Tag:
refs/tags/v0.13.0 - Owner: https://github.com/pymc-devs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@811d0418103e517f3a4f791d4d88ea206085255e -
Trigger Event:
release
-
Statement type:
File details
Details for the file pymc_extras-0.13.0-py3-none-any.whl.
File metadata
- Download URL: pymc_extras-0.13.0-py3-none-any.whl
- Upload date:
- Size: 306.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15bbb610449e0ad0df9d90620522a47618d4c4f0c86b5f1fb99d966e27095890
|
|
| MD5 |
1f8941a528a96f368e24cb5202b04700
|
|
| BLAKE2b-256 |
691c7771a68a98483c82ad79ed62ee04f83c80e0014595ab06246d52b07f636c
|
Provenance
The following attestation bundles were made for pymc_extras-0.13.0-py3-none-any.whl:
Publisher:
pypi.yml on pymc-devs/pymc-extras
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymc_extras-0.13.0-py3-none-any.whl -
Subject digest:
15bbb610449e0ad0df9d90620522a47618d4c4f0c86b5f1fb99d966e27095890 - Sigstore transparency entry: 2163569556
- Sigstore integration time:
-
Permalink:
pymc-devs/pymc-extras@811d0418103e517f3a4f791d4d88ea206085255e -
Branch / Tag:
refs/tags/v0.13.0 - Owner: https://github.com/pymc-devs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@811d0418103e517f3a4f791d4d88ea206085255e -
Trigger Event:
release
-
Statement type: