bartz.mcmcloop.StatsReport

class bartz.mcmcloop.StatsReport(move_acc, mean_leaves, mean_tree_life, steps_done, var_perplexity, p_eff, n_samples, num_chains, max_leaves)[source]

Forest diagnostics produced by StatsAccumulator.report for one report.

move_acc: Float32[Array, '']

Fraction of the trees in use on which a grow or prune move was accepted.

mean_leaves: Float32[Array, '']

Mean number of leaves per tree in use.

mean_tree_life: Float32[Array, '']

Mean of bartz.mcmcstep.Forest.tree_life over the trees in use and the chains.

steps_done: Int32[Array, '']

Number of MCMC steps done, the maximum possible tree life.

var_perplexity: Float32[Array, ''] | None

Perplexity of the split-variable distribution, an effective number of predictors, or None when variable selection is off.

p_eff: Int32[Array, ''] | None

Number of predictors with decision rules, or None when variable selection is off.

n_samples: Int32[Array, ''] | None

Number of iterations averaged over, or None when not averaging.

num_chains: int | None

Number of chains averaged over, or None when single-chain.

max_leaves: int

Maximum possible number of leaves per tree.