Skip to content

Commit fea4a87

Browse files
committed
Tiny rewrite to use | instead of tt.or_.
Remove TODO comments.
1 parent 2af5b03 commit fea4a87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pymc3/distributions/continuous.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ def logcdf(self, value):
15271527
lam = self.lam
15281528
a = lam * value
15291529
return tt.switch(
1530-
tt.or_(tt.le(value, 0.0), tt.le(lam, 0)),
1530+
tt.le(value, 0.0) | tt.le(lam, 0),
15311531
-np.inf,
15321532
log1mexp(a),
15331533
)
@@ -3896,7 +3896,7 @@ def logcdf(self, value):
38963896
38973897
References
38983898
----------
3899-
.. [Machler2012] c.
3899+
.. [Machler2012] Martin Mächler (2012).
39003900
"Accurately computing :math: `\log(1-\exp(- \mid a \mid<))` Assessed by the Rmpfr
39013901
package"
39023902
@@ -3910,7 +3910,6 @@ def logcdf(self, value):
39103910
-------
39113911
TensorVariable
39123912
"""
3913-
# TODO: Check possible redundant (or improved) reimplementation of log1pexp
39143913
mu = self.mu
39153914
s = self.s
39163915
a = -(value - mu) / s

0 commit comments

Comments
 (0)