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
stochtreemodels via JSON - Internal Tree Inspection: inspecting the trees in a sampled
stochtreeforest - Low-Level Interface: using the low-level
stochtreeinterface to construct a custom sampling loop