Closed raino01r closed 8 years ago
Hello,
I'm facing similar error. I have pymc 2.3.6 install through pip.
Traceback (most recent call last): y = pymc.stochastic_from_data('y', data=np.asarray(VG.radf), value=Lr, observed=True) File "/usr/local/lib/python2.7/dist-packages/pymc/distributions.py", line 427, in stochastic_from_data pdf = gaussian_kde(data) # automatic bandwidth selection TypeError: 'module' object is not callable
kde has been updated do gaussian_kde, but I can't understand why it rises "'module' object is not callable".
I truly appreciated any help here.
I would strongly recommend using PyMC3 instead of 2.3.6. The samplers are much, much better.
If you really have to stick with PyMC2, I would at least upgrade to the latest release (2.3.7).
Hello all, I'm using pymc since a bit of time now and recently I was working on a problem that required the creation of a custom stochastic variable from data. I'm not sure whether this problem is already known.
Problem: When calling
stochastic_from_data
, there is a TypeError thrown, the problem is that in thedistributiuon.py
the following two lines are givenExample:
Solution
because:
does not raise anything.
My setup:
Comments: the proposed solution should not affect anything rather than
stochastic_from_dist
indistributions.py
.