bartz.debug

Debugging utilities.

Prior sampling

sample_prior(key, trace_length, num_trees, ...)

Sample independent trees from the BART prior.

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.

TraceWithOffset(leaf_tree, var_tree, ...)

A trace of trees with an offset, compatible with bartz.mcmcloop.evaluate_trace.