StochTree Python API Demo#
The following demos showcase (some of) the functionality and output of the stochtree
python package.
- Supervised Learning: using
BARTModel()
for classic supervised learning tasks - Causal Inference: using
BCFModel()
for causal effect estimation - Heteroskedastic Supervised Learning: using
BARTModel()
for supervised learning tasks with heteroskedasticity (covariate-dependent variance) - Multivariate Treatment Causal Inference: using
BCFModel()
for causal effect estimation with a multivariate (continuous) treatment variable - Model Serialization: saving and reloading
stochtree
models via JSON - Internal Tree Inspection: inspecting the trees in a sampled
stochtree
forest - Low-Level Interface: using the low-level
stochtree
interface to construct a custom sampling loop