Skip to content

Interface

pyggdrasil.interface.PureMcmcData dataclass

Pure MCMC data

Attributes:

Name Type Description
iterations Array

jax.Array iteration numbers

trees list[TreeNode]

list[TreeNode] list of TreeNode objects

log_probabilities Array

jax.Array log-probabilities of the trees

append(iteration, tree, log_probability, *args, **kwargs)

Append a sample to the MCMC chain.

Parameters:

Name Type Description Default
iteration int

iteration number

required
tree TreeNode

TreeNode object

required
log_probability float

log-probability of the tree

required

get_sample(iteration)

Return a sample from the MCMC chain.

Parameters:

Name Type Description Default
iteration int

iteration number

required

Returns: tree: TreeNode object log_probability: log-probability of the tree