2e8c36e6b6a2324e38fbb3f604f92e1bf02659c1,pymc3/distributions/discrete.py,Poisson,logp,#Poisson#Any#,200
Before Change
def logp(self, value):
mu = self.mu
return bound(
logpow(mu, value) - factln(value) - mu,
mu >= 0, value >= 0)
class NegativeBinomial(Discrete):
R
After Change
def logp(self, value):
mu = self.mu
log_prob = bound(
logpow(mu, value) - factln(value) - mu,
mu >= 0, value >= 0)
// Return zero when mu and value are both zero
return T.switch(1 * T.eq(mu, 0) * T.eq(value, 0),
0, log_prob)
class NegativeBinomial(Discrete):
R
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: pymc-devs/pymc3
Commit Name: 2e8c36e6b6a2324e38fbb3f604f92e1bf02659c1
Time: 2016-05-10
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/distributions/discrete.py
Class Name: Poisson
Method Name: logp
Project Name: pymc-devs/pymc3
Commit Name: 62c1b9e8d9e8c56b27672a631edf18963d72c3d1
Time: 2016-05-10
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/distributions/discrete.py
Class Name: Poisson
Method Name: logp
Project Name: rusty1s/pytorch_geometric
Commit Name: 776f891afa3e7bfe2ae456c064e0867c4987c762
Time: 2020-06-30
Author: matthias.fey@tu-dortmund.de
File Name: examples/rgcn.py
Class Name:
Method Name: test
Project Name: pytorch/pytorch
Commit Name: ee4ce8e9d9a439b9a87fcfa6abdcb0f7f3f62b11
Time: 2021-03-12
Author: bowbao@microsoft.com
File Name: torch/onnx/symbolic_opset9.py
Class Name:
Method Name: embedding