I am trying to use pymc3 in an ipynb on Google Colab.
Here is my code:
regression_conjugate = pm.Model()
with regression_conjugate:
sigma2 = pm.InverseGamma("sigma2",alpha = 0.5*nu0,beta=0.5*lam0)
sigma = pm.math.sqrt(sigma2)
a = pm.Normal("a",mu = b0[0],sd = sigma*sd0[0])
b = pm.Normal("b",mu = b0[1],sd = sigma*sd0[1])
y_hat = a+b*x
likelihood = pm.Normal("y",mu = y_hat,sd = sigma,observed = y)
n_draws = 50
n_chains = 4
n_tune = 1000
with regression_conjugate:
trace = pm.sample(draws = n_draws, chains=n_chains,tune=n_tune,random_seed=123)
print(pm.summary(trace))
However, this outputs the following:
TypeError Traceback (most recent call last)
<ipython-input-44-4e1a1fef1a74> in <module>()
26 trace = pm.sample(draws = n_draws, chains=n_chains,tune=n_tune,random_seed=123)
27
---> 28 print(pm.summary(trace))
TypeError: concat() got an unexpected keyword argument 'join_axes'
please let me know if anyone who understands.
pymc3 : 3.7
pandas : 1.0.3
Compiler Deprecated error
. Turns out you might be using newer version of Python3 than Theano compiler which needs to be configured for PyMC3 can support. Read this. Try to edit your post with more information and code that can be run. You are also missing import statements. – Turgorpm.summary(trace)
without theprint
? – Manufactory