pymc
pymc copied to clipboard
Remove `t` suffix from `Model` methods
model.logpt
, model.dlogpt
and model.d2logpt
would be a bit more intuitive without the t
suffix. Historically that was done to distinguish the tensor
graphs from the compiled functions, but those are now obtained via model.compile_logp
, model.compile_dlogp
and model.compile_d2logp
.
I never knew what the t
stood for, so yes, best to remove.
If anyone wants to take a go, this should be a simple deprecation PR:
- Rename the new methods to
pymc.model.Model
without thet
suffix, - Keep the old ones as a simple wrapper that issues a FutureWarning in between.
- Change all the tests to make use of the new names,
- Add some tiny tests to make sure the deprecation is being issued,
- Create a new Github Issue to remove the deprecated names in
v4.2
I can take this one if that's ok!
@cuchoi Great, just open a draft PR so that people see you're working on it.
Should I update datalogpt
, varlogpt
, observedlogpt
, and potentiallogpt
, distributions.joint_logpt
as well?
Should I update
datalogpt
,varlogpt
,observedlogpt
, andpotentiallogpt
,distributions.joint_logpt
as well?
Yes! I forgot about those
Cool. Should I update documentation such as docs/source/contributing/developer_guide.rst and docs/source/learn/core_notebooks/pymc_aesara.ipynb?
Cool. Should I update documentation such as docs/source/contributing/developer_guide.rst and docs/source/learn/core_notebooks/pymc_aesara.ipynb?
Yes
Opening this as a reminder to deprecate in a future major release