Two deprecation warnings appeared in recent releases of PyTensor (link) or PyMC:
ndims_params and ndim_supp deprecated in favor of a signature attribute
moment() was replaced by support_point()
The moment() to support_point() boiled down to changing a function name.
However, ndims_params is now computed when an instance is created, which means it could not be used directly in the rng_fn() classmethod (via cls). The fix suggested by a PyMC dev was to hardcoded ndims_params inside rng_fn()
I also added tests to check that 1) ndims_params and ndim_supp derived from the signature give the expected values and 2) support_point behaves as expected
Two deprecation warnings appeared in recent releases of PyTensor (link) or PyMC:
ndims_params
andndim_supp
deprecated in favor of asignature
attributemoment()
was replaced bysupport_point()
The
moment()
tosupport_point()
boiled down to changing a function name.However,
ndims_params
is now computed when an instance is created, which means it could not be used directly in therng_fn()
classmethod (viacls
). The fix suggested by a PyMC dev was to hardcodedndims_params
insiderng_fn()
I also added tests to check that 1)
ndims_params
andndim_supp
derived from the signature give the expected values and 2)support_point
behaves as expected