Re: Question about 'x' in pymc.invlogit(a+b*x)

2015-03-07 Thread Terry Reedy
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

Question about 'x' in pymc.invlogit(a+b*x)

2015-03-07 Thread fl
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)