- class liesel.experimental.pymc.PyMCInterface(model, additional_vars=())[source]#
An implementation of the Goose
ModelInterfaceto be used with a PyMC model.
The initial position can be extracted with
get_initial_state(). The model state is represented as a
By default, only non-observed random variables are available via
extract_position(). This includes transformed but not untransformed variables. Also,
Deterministic’s are not available. To make them trackable for the Goose
Engine, these variables must be mentioned in the constructor.
Model) – A PyMC model.
str]) – Variables that should be available via
extract_position()but are not by default. (default:
Extracts a sub-position specified by
Returns the model's initial state.
Computes the unnormalized log-probability given the model state.
Updates the model state with the position returning the new model state.