bartz.debug

Debugging utilities.

Prior sampling

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

Sample independent trees from the BART prior.

PriorSample(var_tree, split_tree, leaf_tree)

Output of sample_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.

MinimalTrace(leaf_tree, var_tree, ...)

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