LieselMCMC

Contents

LieselMCMC#

class liesel.goose.LieselMCMC(model, which=None)[source]#

Bases: object

Manages the setup of MCMC specifications for a Liesel model.

Parameters:
  • model (Model) – The Liesel model object containing the variables and their inference specifications.

  • which (str | None) – A named inference configuration to use. If None, the default inference attached to each variable is used. (default: None)

Methods

get_engine_builder(seed, num_chains[, ...])

Create and configure an EngineBuilder for MCMC sampling.

get_jitter_functions()

Collect jitter functions for model variables that define a jitter distribution.

get_kernel_groups()

Collect and organize model variables into kernel groups.

get_kernel_list()

Construct the list of MCMC kernels from kernel groups.

get_spec(var)

Retrieve the MCMC specification for a given variable.

Attributes