API Reference#
Model#
This reference provides detailed documentation for all modules, classes, and methods in the current release of PyMC experimental.
|
Decorator to provide context to PyMC models declared in a function. |
|
Marginalize a subset of variables in a PyMC model. |
|
Computes posterior log-probabilities and samples of marginalized variables conditioned on parameters of the model given DataTree with posterior group |
|
ModelBuilder can be used to provide an easy-to-use API (similar to scikit-learn) for models and help with deployment. |
Inference#
|
Fit a PyMC model via maximum a posteriori (MAP) estimation using JAX and scipy.optimize. |
|
Fit a model with an inference algorithm. |
|
Create a Laplace (quadratic) approximation for a posterior distribution. |
|
Fit Pathfinder variational inference (multi-path, PyMC/PyTensor backend). |
Distributions#
|
\(\chi\) log-likelihood. |
|
The Maxwell-Boltzmann distribution |
|
A Discrete Markov Chain is a sequence of random variables |
|
Generalized Poisson. |
|
Beta Negative Binomial distribution. |
|
Univariate Generalized Extreme Value log-likelihood |
|
R2D2M2CP Prior. |
|
Skellam distribution. |
|
Approximate a distribution with a histogram potential. |
Prior#
|
Wrap the |
|
Take a tensor of dims dims and align it to desired_dims. |
|
A class to represent a prior distribution. |
|
Register a tensor transform function to be used in the Prior class. |
|
Protocol for something that works like a Prior class. |
|
Sample the prior for an arbitrary VariableFactory. |
|
Create censored random variable. |
|
Scaled distribution for numerical stability. |
Deserialize#
|
Deserialize a dictionary into a Python object. |
|
Register an arbitrary deserialization. |
|
Object to store information required for deserialization. |
Transforms#
|
Create a PartialOrder transform |
Utils#
|
Interpolate sparse grid to dense grid using bsplines. |
|
Create a prior from posterior using MvNormal approximation. |
|
Check whether two PyMC models are equivalent. |
Statespace Models#
Model Transforms#
|
Repametrize Model using Variationally Informed Parametrization (VIP). |
|
Helper to reparemetrize VIP model. |
Printing#
|
Create a rich table with a summary of the model's variables and their expressions. |