Powerful add-ons for PyMC
See the codepymc-extrasPyMC 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:
DiscreteMarkovChain, GeneralizedPoisson, and GenExtremepymc-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.
pip install pymc-extras
or for the development version:
pip install git+https://github.com/pymc-devs/pymc-extras.git
pymc-extras?Functionality that proves widely useful may graduate to the main pymc repository.
pymc-extras?We welcome contributions! Check out the contributing guidelines to get started.
541 followers · starred Mar 2022
39 followers · starred Sep 2023
Powerful add-ons for PyMC
See the codepymc-extrasPyMC 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:
DiscreteMarkovChain, GeneralizedPoisson, and GenExtremepymc-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.
pip install pymc-extras
or for the development version:
pip install git+https://github.com/pymc-devs/pymc-extras.git
pymc-extras?Functionality that proves widely useful may graduate to the main pymc repository.
pymc-extras?We welcome contributions! Check out the contributing guidelines to get started.
541 followers · starred Mar 2022
39 followers · starred Sep 2023