bartz.mcmcstep¶
Functions that implement the BART posterior MCMC initialization and update step.
Initialization and stepping¶
|
Make a BART posterior sampling MCMC initial state. |
|
Do one MCMC step. |
|
Prepare the |
|
Likelihood types for each outcome component in the regression. |
MCMC state¶
|
Represents the MCMC state of BART. |
|
Represents the MCMC state of a sum of trees. |
|
Options for the MCMC step. |
|
A precision matrix with a Wishart prior, bundled with its current value. |
|
A diagonal precision matrix with independent chi-square diagonal entries. |
Reduction strategies¶
Configurations for the per-leaf scatter-add reductions, to pass to init.
Select and configure an indexed-reduce (scatter-add) implementation. |
|
|
Segment-sum with optional batching along the datapoints. |
|
|
|
Dense one-hot reduction. |
|
|
|
Blocked one-hot scatter-add written as a Pallas kernel. |