Closed RZachLamberty closed 3 months ago
Thanks for flagging, we failed to deprecate softly in https://github.com/pymc-devs/pymc/pull/7166
@aerubanov do you happen to have the time to fix things on this end?
@ricardoV94 yeah, will take a look today
It's still useful to update pymc-experimental not to depend on the deprecated methods, as the tests will start to fail anyway
Has this problem already been fixed? I installed the latest version of pymc-experimental this morning and when running a python program I get the same error message as the topic starter.
No it hasn't been fixed. You can install an older version of PyMC in the meantime
Should work fine with https://github.com/pymc-devs/pymc/releases/tag/v5.10.4
I confirm that in my case pymc version 5.10.4 solves the problem.
I am still getting the following error when trying to import pymc-experimental on the newest pymc
219 new_size = tuple(new_size) + tuple(old_size)
221 return DiscreteMarkovChain.rv_op(*dist.owner.inputs[:-1], size=new_size, n_lags=op.n_lags)
--> 224 @_moment.register(DiscreteMarkovChainRV)
225 def discrete_mc_moment(op, rv, P, steps, init_dist, state_rng):
226 init_dist_moment = moment(init_dist)
227 n_lags = op.n_lags
AttributeError: 'function' object has no attribute 'register'
Yeah the simple function wrapper doesnt' cut it haha.
Anyway the fix here is easy, uses of _moment
should be replaced by _support_point
Closed via #320
if you install
pymc==5.11
andpymc-experimental==0.0.17
, changes to the pymc.distributions.distributrionmodule make it impossible to import
pymc_experimental`:will result in