Skip to main content

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

Contribute with Gitpod Codecov Badge

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, and GenExtreme

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


Download files

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

Source Distribution

pymc_extras-0.13.1.tar.gz (635.3 kB view details)

Uploaded Source

Built Distribution

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

pymc_extras-0.13.1-py3-none-any.whl (312.4 kB view details)

Uploaded Python 3

File details

Details for the file pymc_extras-0.13.1.tar.gz.

File metadata

  • Download URL: pymc_extras-0.13.1.tar.gz
  • Upload date:
  • Size: 635.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pymc_extras-0.13.1.tar.gz
Algorithm Hash digest
SHA256 b3d6acbe8e60ce9f37e09a40c32d7f74314e469f275449e64429e290c9706f0f
MD5 b7f763102166ba8de0f9e66e8c0c0c7d
BLAKE2b-256 c7eba549b6048ce873b0ba9d766bd0be188c5ed02eb06d69ab93a0774870a4e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymc_extras-0.13.1.tar.gz:

Publisher: pypi.yml on pymc-devs/pymc-extras

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

File details

Details for the file pymc_extras-0.13.1-py3-none-any.whl.

File metadata

  • Download URL: pymc_extras-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 312.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pymc_extras-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a82df7877a1d2a21a7be65a6b940180f5aa3c7ff60024f0c55328bab2a71041
MD5 a072f151f2326d3d32839fab83208061
BLAKE2b-256 6dd36dbf1bdcfdde238c5464e7272829b0ef1e7395cb0b0ca63d9369cc3e38d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymc_extras-0.13.1-py3-none-any.whl:

Publisher: pypi.yml on pymc-devs/pymc-extras

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page