bartz.stochtree.MeanForestParams¶
- class bartz.stochtree.MeanForestParams(*, num_trees=200, alpha=0.95, beta=2.0, min_samples_leaf=5, max_depth=10, sample_sigma2_leaf=True, sigma2_leaf_init=None, sigma2_leaf_shape=3.0, sigma2_leaf_scale=None)[source]¶
Mirror of stochtree’s
mean_forest_paramsdict, restricted to the keys bartz handles.- sample_sigma2_leaf: bool = True¶
Whether to sample the leaf variance with an inverse-gamma prior, or hold it fixed at
sigma2_leaf_init.
- sigma2_leaf_init: float | Float[Array, ''] | Float[ndarray, ''] | None = None¶
Initial leaf variance. If
None, matches stochtree’s defaults ofvar(resid_train) / num_treesfor continuous and2 / num_treesfor probit.