bartz.mcmcstep.Sparsity¶
- class bartz.mcmcstep.Sparsity(log_s, theta, a, b, rho, log_theta_range)[source]¶
The parameters of the prior probability of the variables to split along.
- log_s: Float32[Array, '*chains p'] | None¶
The logarithm of the prior probability for choosing a variable to split along in a decision rule. Not normalized. Variables that do not have any available decision rule at a given node are masked away. If
None, use a uniform distribution. Withouttheta, it is constant and shared by the chains, seehas_chains.
- theta: Float32[Array, '*chains'] | None¶
The concentration parameter for the Dirichlet prior on the variable distribution
s. If not set,log_sis left constant.
- a: Float32[Array, ''] | None¶
First shape parameter of the prior on
theta. If not set,thetais left constant.
- b: Float32[Array, ''] | None¶
Second shape parameter of the prior on
theta. If not set,thetais left constant.
- rho: Float32[Array, ''] | None¶
Scale parameter of the prior on
theta. If not set,thetais left constant.