Repository navigation
v0.5.0
What's Changed
This release hardens the PyMC integration: widget seeding from constant model params is now more accurate, and prior sampling is cached so the panel stays stable when embedded in marimo tabs.
PyMC integration (modist.pymc)
- More accurate constant-param seeding — widget seeding now constant-folds each RV op-input with pymc's own rewriting (
constant_fold), so broadcasts, casts, stacked lists, and Gamma's rate→scale transform all resolve to the exact user-facing value. Per-family_op_param_orderpins the true op-input order (e.g. StudentT is(nu, mu, sigma)), and Gamma'sreciprocal(beta)is descended to recover the exact rate under pymc ≥ 6 and pymc 5. - Prior-sample caching across tab switches —
ModelPriors.drawandsample_prior_predictivenow share a single-entry cache keyed by draw count + input values. A re-run with unchanged widgets returns the same draws/DataTreeinstead of re-sampling. This keeps the panel stable when embedded in marimo tabs: switching tabs remounts the anywidgets, which re-emit their values and re-run dependent cells — but identical values no longer trigger a fresh sampler run. Dragging a prior (or passingoverrides) changes the key and produces a fresh sample.
Demos
- Added a pymc prior-predictive demo and updated
demos/regression.py.
New Contributors
No new contributors this release.
Full Changelog: v0.4.0...v0.5.0