On 3/7/2015 11:44 AM, fl wrote:
Hi,
I once learnt Python for a few weeks. Now, I try to using a Python package
pymc. It has the following example code:
import pymc
import numpy as np
n = 5*np.ones(4,dtype=int)
x = np.array([-.86,-.3,-.05,.73])
x is defined here as a module ('global') name
Hi,
I once learnt Python for a few weeks. Now, I try to using a Python package
pymc. It has the following example code:
import pymc
import numpy as np
n = 5*np.ones(4,dtype=int)
x = np.array([-.86,-.3,-.05,.73])
alpha = pymc.Normal('alpha',mu=0,tau=.01)
beta = pymc.Normal('beta',mu=0,tau=.01)