b2566d099e6b0b4cc8c3958638d06ad3c87eee41,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.
After Change
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
return mu,N,z,y
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: 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: pyannote/pyannote-audio
Commit Name: 14a9d386baf93b8266fa21277b40d669a4e397d2
Time: 2016-11-14
Author: hbredin@users.noreply.github.com
File Name: pyannote/audio/embedding/models.py
Class Name: TristouNet
Method Name: __call__