Skip to content

Commit 30d4a0a

Browse files
committed
Replaced stray occurrence of logsumexp with logaddexp
1 parent b7daa3e commit 30d4a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/distributions/discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def logp(self, value):
703703

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

708708
return bound(logp_val,
709709
0 <= value, value <= n,

0 commit comments

Comments
 (0)