Skip to content

Commit

Permalink
Replaced stray occurrence of logsumexp with logaddexp
Browse files Browse the repository at this point in the history
  • Loading branch information
fonnesbeck committed Jun 1, 2017
1 parent b7daa3e commit 30d4a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc3/distributions/discrete.py
Expand Up @@ -703,7 +703,7 @@ def logp(self, value):

logp_val = tt.switch(value > 0,
tt.log(psi) + self.bin.logp(value),
logsumexp(tt.log1p(-psi), tt.log(psi) + n * tt.log1p(-p)))
logaddexp(tt.log1p(-psi), tt.log(psi) + n * tt.log1p(-p)))

return bound(logp_val,
0 <= value, value <= n,
Expand Down

0 comments on commit 30d4a0a

Please sign in to comment.