4633209328d1ad208c117bcb00ee1b5567981264,pymc3/distributions/multivariate.py,Multinomial,logp,#Multinomial#Any#,163
Before Change
return bound(
factln(n) + sum(x * log(p) - factln(x)),
n >= 0,
eq(sum(x), n),
all(0 <= x), all(x <= n))
After Change
// only defined for sum(p) == 1
return bound(
factln(n) + T.sum(x * T.log(p) - factln(x)),
T.all(x >= 0), T.all(x <= n), T.eq(T.sum(x), n),
n >= 0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pymc-devs/pymc3
Commit Name: 4633209328d1ad208c117bcb00ee1b5567981264
Time: 2015-12-26
Author: superbobry@gmail.com
File Name: pymc3/distributions/multivariate.py
Class Name: Multinomial
Method Name: logp
Project Name: pymc-devs/pymc3
Commit Name: 601b0f3374837bf157f2804448e227fad072a9bb
Time: 2016-10-26
Author: arochford@monetate.com
File Name: pymc3/distributions/multivariate.py
Class Name: Multinomial
Method Name: logp
Project Name: pymc-devs/pymc3
Commit Name: 625435edc61a92f963634e84a5f235dbc0b6028d
Time: 2018-06-28
Author: dominik.otto@gmail.com
File Name: pymc3/distributions/dist_math.py
Class Name:
Method Name: logpow