Function reference

Public API

sample Run pm.sample (or a trusted runner), reusing a matching result.
sample_smc Run and cache pm.sample_smc without conflating it with NUTS.
CacheBackend Minimal backend interface; extra management operations are optional.
MemoryCache Thread-safe, copy-isolated LRU of posterior results.
DiskCache One-file, full-key-verified atomic NetCDF result cache.
CacheSession Compute identity and check a cache before beginning costly sampling.
CachePolicy Select whether unseeded sampling may reuse a previous run.
CacheEntry Metadata for an owned, valid disk entry (without loading posterior arrays).
CacheLookup Immutable record of a pre-sampling cache lookup.
UncacheableError Raised when the identity of a model or sampling option cannot be established.
CacheWarning A cache was bypassed or an entry could not be persisted.
cleanup_cache Remove only new-format entries in a directory; do not delete the root.
model_digest Content hash of model graph, data, outputs and coordinates.
cache_key Full SHA-256 identity of a model, sampler settings and environment.