bartz.mcmcloop.compute_varcount¶
- bartz.mcmcloop.compute_varcount(p, trace)[source]¶
Count how many times each predictor is used in each MCMC state.
- Parameters:
p (
int) – The number of predictors.trace (
EvaluableTrace) – A main trace of the BART MCMC, as returned byrun_mcmc.
- Returns:
Int32[Array, '*trace_shape {p}']– Histogram of predictor usage in each MCMC state.