rules/pymc/deprecated-root-namespace.md
PyMC 6 relocated math helpers (invlogit, logit, logsumexp), compute_log_prior, exceptions (SamplingError, ShapeError), and PyTensor utilities (gradient, hessian, floatX) out of the root pymc namespace (DeprecationWarning, scheduled for removal in the first PyMC release of 2027).
diff
| 1 | -p = pm.invlogit(eta) |
| 2 | +p = pm.math.invlogit(eta) |
| 3 | -prior_ll = pm.compute_log_prior(idata) |
| 4 | +prior_ll = pm.stats.compute_log_prior(idata) |
What the rule reports
Attribute lookups on pm or pymc targeting symbols relocated in pymc._deprecations (pymc.math, pymc.stats, pymc.exceptions, and pymc.pytensorf).
How to fix it
Reference each symbol from its canonical submodule (pm.math.*, pm.stats.*, pm.exceptions.*, or pm.pytensorf.*).