Prior specification#
A declarative way to define (hierarchical) prior distributions that can be serialized to and from JSON. Useful when priors are part of a configuration file rather than hardcoded in a model, as in pymc-marketing.
|
A class to represent a prior distribution. |
|
Create censored random variable. |
|
Scaled distribution for numerical stability. |
|
Sample the prior for an arbitrary VariableFactory. |
|
Wrap the |
|
Take a tensor of dims dims and align it to desired_dims. |
|
Register a tensor transform function to be used in the Prior class. |
|
Protocol for something that works like a Prior class. |
From a previous model#
Build a prior from the posterior of a previously fitted model, enabling simple Bayesian updating workflows.
|
Create a prior from posterior using MvNormal approximation. |
Deserialization#
Registry that maps JSON data back to Python objects, used to round-trip
Prior definitions and extensible to arbitrary custom types.
|
Deserialize a dictionary into a Python object. |
|
Register an arbitrary deserialization. |
|
Object to store information required for deserialization. |