9f7d418c4eae41ded178402ab07538910c11b07a,pymc/tests/test_graph.py,,mymodel,#,7
Before Change
def C(value=0, mom = A, dad = B):
return 0.
F = []
@stochastic
def x_0(value=0, mod = C):
return 0.
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)
F.append(5)
F = Container(F)
del q
del x_0
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):
return -z**2
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances 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
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
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: 96d0eebd5f75592deb850b8af84af2af9a8ae677
Time: 2017-06-01
Author: junpeng.lao@unifr.ch
File Name: pymc3/examples/custom_dists.py
Class Name:
Method Name: