bartz.bcf.BCFMainTrace

class bartz.bcf.BCFMainTrace(mu, tau, tau_0, b)[source]

Main trace of the BCF MCMC, with the trees of both forests.

finalize()[source]

Finalize the traces of the two forests.

Return type:

BCFBurninTrace

tau_0: Float32[Array, '*chains_and_samples']

The treatment effect intercept.

b: Float32[Array, '*chains_and_samples 2']

The adaptive coding weights for untreated and treated units.

mu: MainTrace

The trace of the prognostic forest.

tau: MainTrace

The trace of the treatment forest.

classmethod from_state(state)[source]

Create a single-item main trace from a BCF state.

Return type:

BCFMainTrace