Model construction and estimation#

Prepare your data in Model and set custom priors or covariates before estimating. Use fit() for NUTS. Use attach_samples() to restore samples into a compatible fresh model.

Model

Own runtime preparation and build its native graph only when requested.

set_priors

Replace selected ordinary priors or baseline regressions.

fit

Call native PyMC sampling and replace results only after success.

attach_samples

Attach samples, optionally affirming the untagged batch and incoming prior.

set_platform

Choose device and precision before preparing data or building graphs.

Native and experimental estimation#

Use build() to access the native PyMC graph. Posterior approximation supports experimental recursive scoring. sample_gtum() provides specialized GTUM estimation.

build

Return the cached native model; a scoring graph requires its runtime prior.

posterior_approximation

Fit a calibration prior, pooling the automatic selection by default.

sample_gtum

Run NUTS and corrected regional-mode proposals through the common runner.