Skip to content

Commit 5184768

Browse files
committed
Replaced stray log with log1p
1 parent 30d4a0a commit 5184768

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
@@ -635,7 +635,7 @@ def logp(self, value):
635635

636636
logp_val = tt.switch(value > 0,
637637
tt.log(psi) + self.pois.logp(value),
638-
logaddexp(tt.log(-psi), tt.log(psi) - theta))
638+
logaddexp(tt.log1p(-psi), tt.log(psi) - theta))
639639

640640
return bound(logp_val,
641641
0 <= value,

0 commit comments

Comments
 (0)