cache.DiskCache
cache.DiskCache(base_dir=None, model=None)Persistent disk cache with human-readable directory hierarchy.
Layout: {base_dir}/{model_slug}/{params_label}-{key_prefix}.nc
The filename combines human-readable params (draws, tune, chains) with a hash prefix from the full cache key for uniqueness. This ensures that runs differing only in non-displayed params (random_seed, init, etc.) never collide.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| base_dir | str | Path | None | Root cache directory. Defaults to ./.cloudposterior | None |
| model | PyMC model, used to derive the top-level directory name | None |