b2566d099e6b0b4cc8c3958638d06ad3c87eee41,pymc/tests/test_graph.py,,mymodel,#,7
Before Change
F.append(x_0)
last_x = x_0
for i in range(1,3):
@stochastic
def x(value=0, last = last_x, mod = C):
return 0.
x.__name__ = r"x_%i" % i
last_x = x
F.append(x)
del x
@deterministic
def q(pop = A):
return (0)
F.append(q)
After Change
DIR = "testresults"
def mymodel():
mu=pm.Normal("mu",0,1)
N= [pm.Normal("N_%i"%i,mu,1) for i in xrange(10)]
z = pm.Lambda("z",lambda n=N: np.sum(n))
@pm.potential
def y(z=z):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pymc-devs/pymc3
Commit Name: b2566d099e6b0b4cc8c3958638d06ad3c87eee41
Time: 2010-01-06
Author: anand.prabhakar.patil@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/tests/test_graph.py
Class Name:
Method Name: mymodel
Project Name: pymc-devs/pymc3
Commit Name: d4c874290ddac2147eb1c2d50c221f16a68d9770
Time: 2016-09-12
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/tests/test_glm.py
Class Name: TestGLM
Method Name: test_linear_component
Project Name: pymc-devs/pymc3
Commit Name: 9f7d418c4eae41ded178402ab07538910c11b07a
Time: 2009-12-10
Author: anand.prabhakar.patil@gmail.com
File Name: pymc/tests/test_graph.py
Class Name:
Method Name: mymodel