arviz_base.MCMCAdapter

arviz_base.MCMCAdapter#

class arviz_base.MCMCAdapter(mcmc)[source]#

Adapter for MCMC to standardize attributes and methods with other inference objects.

__init__(mcmc)[source]#

Initialize MCMC adapter from fitted MCMC object.

Parameters:
mcmcnumpyro.infer.MCMC

Fitted MCMC object with completed sampling.

Methods

__init__(mcmc)

Initialize MCMC adapter from fitted MCMC object.

get_sample_stats(**kwargs)

Get sample stats from the inference object (e.g., divergences for MCMC).

get_samples([seed])

Get posterior samples from the inference object.

Attributes

sample_dims

Return the sample dimension names.