bartz.debug

Debugging utilities.

Model simulation

sample_prior(key, state)

Draw the parameters of the model from their prior.

sample_data(key, state)

Draw the data from the model given the parameters.

ChainDataState(_chain_anchor, X, y, z, ...)

A State with separate data for each chain.

R BART trace conversion

trees_BART_to_bartz(trees, *[, ...])

Convert trees from the R BART format to the bartz format.

BARTTraceMeta(ndpost, ntree, numcut, heap_size)

Metadata of R BART tree traces.

MinimalTrace(leaf_tree, var_tree, ...)

A minimal trace of trees, compatible with bartz.mcmcloop.evaluate_trace.