prophys.inference

prophys.inference#

Full posterior inference for a compiled prophys model.

Optional: sampling requires the inference extra (pip install "prophys[inference]"), which pulls in NumPyro. The package imports without it, and sample_posterior() then raises an ImportError with an installation hint rather than a bare ModuleNotFoundError naming a package the user never asked for.

See prophys.inference.bridge for the entry points.

Classes

Posterior

Posterior draws over a compiled model's parameters, from sample_posterior().

PosteriorSummary

Posterior means, credible intervals and convergence diagnostics per parameter.

Functions

potential_function

Return the model's negative log likelihood as a NumPyro potential function.

sample_posterior

Sample the posterior over a compiled model's parameters with NUTS.